diff options
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 |