diff options
| author | Richard M. Stallman | 1994-04-13 22:23:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-13 22:23:24 +0000 |
| commit | 29beb080a9f6f6462e7fde93ae3d347e79d4ad62 (patch) | |
| tree | dd8a9ef3759ef4a0582fbbfe483b252607c7b290 /src | |
| parent | 00c1bef4ea8f691c1d870eef814607b1c97899f7 (diff) | |
| download | emacs-29beb080a9f6f6462e7fde93ae3d347e79d4ad62.tar.gz emacs-29beb080a9f6f6462e7fde93ae3d347e79d4ad62.zip | |
[HAVE_UNISTD_H]: Include unistd.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 4 | ||||
| -rw-r--r-- | src/fileio.c | 4 |
2 files changed, 8 insertions, 0 deletions
| @@ -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 |