$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 #include #include -extern int errno; /* just in case */ #include #include #include @@ -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); }