$NetBSD: patch-bd,v 1.4 2025/10/26 17:28:47 vins Exp $ --- src/dmail/dmail.c.orig 2011-07-23 00:19:57.000000000 +0000 +++ src/dmail/dmail.c @@ -29,7 +29,7 @@ #include #include #include -extern int errno; /* just in case */ +#include #include #include #include @@ -438,7 +438,9 @@ int delivery_unsafe (char *path,struct s 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); }