$NetBSD: patch-ab,v 1.4 2015/10/20 10:53:24 tnn Exp $

--- ssmtp.c.orig	2009-11-23 09:55:11.000000000 +0000
+++ ssmtp.c
@@ -13,6 +13,8 @@
 #define VERSION "2.64"
 #define _GNU_SOURCE
 
+#include <sys/types.h>
+#include <libgen.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sys/param.h>
