aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-13 22:23:24 +0000
committerRichard M. Stallman1994-04-13 22:23:24 +0000
commit29beb080a9f6f6462e7fde93ae3d347e79d4ad62 (patch)
treedd8a9ef3759ef4a0582fbbfe483b252607c7b290
parent00c1bef4ea8f691c1d870eef814607b1c97899f7 (diff)
downloademacs-29beb080a9f6f6462e7fde93ae3d347e79d4ad62.tar.gz
emacs-29beb080a9f6f6462e7fde93ae3d347e79d4ad62.zip
[HAVE_UNISTD_H]: Include unistd.h.
-rw-r--r--lib-src/movemail.c4
-rw-r--r--src/doc.c4
-rw-r--r--src/fileio.c4
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. */
71#endif 71#endif
72#endif /* USG */ 72#endif /* USG */
73 73
74#ifdef HAVE_UNISTD_H
75#include <unistd.h>
76#endif
77
74#ifdef XENIX 78#ifdef XENIX
75#include <sys/locking.h> 79#include <sys/locking.h>
76#endif 80#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. */
27#include <fcntl.h> 27#include <fcntl.h>
28#endif 28#endif
29 29
30#ifdef HAVE_UNISTD_H
31#include <unistd.h>
32#endif
33
30#ifndef O_RDONLY 34#ifndef O_RDONLY
31#define O_RDONLY 0 35#define O_RDONLY 0
32#endif 36#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. */
22#include <sys/types.h> 22#include <sys/types.h>
23#include <sys/stat.h> 23#include <sys/stat.h>
24 24
25#ifdef HAVE_UNISTD_H
26#include <unistd.h>
27#endif
28
25#if !defined (S_ISLNK) && defined (S_IFLNK) 29#if !defined (S_ISLNK) && defined (S_IFLNK)
26# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 30# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
27#endif 31#endif