summaryrefslogtreecommitdiff
path: root/mail/imap-uw/patches/patch-az
blob: cf27abe7ea0fadcedee79fc1d7b0779183eb5ab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-az,v 1.3 2014/07/18 10:40:28 ryoon Exp $

--- src/tmail/tmail.c.orig	2011-07-23 00:19:58.000000000 +0000
+++ src/tmail/tmail.c
@@ -29,7 +29,6 @@
 #include <stdio.h>
 #include <pwd.h>
 #include <errno.h>
-extern int errno;		/* just in case */
 #include <sysexits.h>
 #include <sys/file.h>
 #include <sys/stat.h>
@@ -559,7 +558,9 @@ int delivery_unsafe (char *path,uid_t ui
   case S_IFCHR: strcat (tmp,"character special"); break;
   case S_IFBLK: strcat (tmp,"block special"); break;
   case S_IFLNK: strcat (tmp,"symbolic link"); break;
+#if defined(S_IFSOCK)
   case S_IFSOCK: strcat (tmp,"socket"); break;
+#endif
   default:
     sprintf (tmp + strlen (tmp),"file type %07o",(unsigned int) type);
   }