$NetBSD: patch-ae,v 1.6 2015/10/31 18:54:46 nros Exp $

* <sys/socket.h> is needed for AF_UNSPEC
--- src/common/utils.c.orig	2015-10-11 08:19:33.000000000 +0000
+++ src/common/utils.c
@@ -49,6 +49,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <sys/param.h>
+#include <sys/socket.h>
 
 #if (HAVE_WCTYPE_H && HAVE_WCHAR_H)
 #  include <wchar.h>
@@ -5106,7 +5107,7 @@ size_t fast_strftime(gchar *buf, gint bu
 				*curpos++ = '0'+(lt->tm_min % 10);
 				break;
 			case 's':
-				snprintf(subbuf, 64, "%ld", mktime(lt));
+				snprintf(subbuf, 64, "%lld", (long long)mktime(lt));
 				len = strlen(subbuf); CHECK_SIZE();
 				strncpy2(curpos, subbuf, buflen - total_done);
 				break;
@@ -5216,7 +5217,7 @@ int claws_unlink(const gchar *filename) 
 	if (prefs_common_get_use_shred()) {
 		if (found_shred == -1) {
 			/* init */
-			args[0] = g_find_program_in_path("shred");
+			args[0] = g_find_program_in_path("claws-mail-shred");
 			debug_print("found shred: %s\n", args[0]);
 			found_shred = (args[0] != NULL) ? 1:0;
 			args[1] = "-f";
