$NetBSD: patch-az,v 1.4 2025/10/26 17:28:47 vins Exp $ --- src/tmail/tmail.c.orig 2011-07-23 00:19:58.000000000 +0000 +++ src/tmail/tmail.c @@ -29,7 +29,7 @@ #include #include #include -extern int errno; /* just in case */ +#include #include #include #include @@ -559,7 +559,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); }