diff options
-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; #include <sys/types.h> #include <sys/stat.h> +/* This is to declare getcwd. */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #if !defined (S_ISREG) && defined (S_IFREG) # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #endif |