diff options
-rw-r--r-- | lib-src/movemail.c | 4 | ||||
-rw-r--r-- | src/doc.c | 4 | ||||
-rw-r--r-- | src/fileio.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 1676e414e1d..7db92557637 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -71,6 +71,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #endif #endif /* USG */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef XENIX #include <sys/locking.h> #endif diff --git a/src/doc.c b/src/doc.c index 8eccb66d18a..8859914972d 100644 --- a/src/doc.c +++ b/src/doc.c @@ -27,6 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <fcntl.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifndef O_RDONLY #define O_RDONLY 0 #endif diff --git a/src/fileio.c b/src/fileio.c index 487cb1184d3..cda88070d4a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -22,6 +22,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/types.h> #include <sys/stat.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #if !defined (S_ISLNK) && defined (S_IFLNK) # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) #endif |