diff options
| author | Richard M. Stallman | 1997-07-20 17:37:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-20 17:37:56 +0000 |
| commit | 5fe16cc40f345322a5572aa87b3e59f32863b804 (patch) | |
| tree | fba5ec15677155a0e13218885e5ce9e7893be699 /lib-src | |
| parent | 77a5664f19cf8f3fcfbd73dc1a173e0b7ba319a4 (diff) | |
| download | emacs-5fe16cc40f345322a5572aa87b3e59f32863b804.tar.gz emacs-5fe16cc40f345322a5572aa87b3e59f32863b804.zip | |
[HAVE_UNISTD_H]: Include unistd.h.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index a9e35d34139..11f4f6a97a2 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -77,6 +77,11 @@ extern int errno; | |||
| 77 | #include <sys/types.h> | 77 | #include <sys/types.h> |
| 78 | #include <sys/stat.h> | 78 | #include <sys/stat.h> |
| 79 | 79 | ||
| 80 | /* This is to declare getcwd. */ | ||
| 81 | #ifdef HAVE_UNISTD_H | ||
| 82 | #include <unistd.h> | ||
| 83 | #endif | ||
| 84 | |||
| 80 | #if !defined (S_ISREG) && defined (S_IFREG) | 85 | #if !defined (S_ISREG) && defined (S_IFREG) |
| 81 | # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) | 86 | # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
| 82 | #endif | 87 | #endif |