summaryrefslogtreecommitdiff
path: root/lib/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getcwd.c')
-rw-r--r--lib/getcwd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/getcwd.c b/lib/getcwd.c
index 86070ead8..be10e4f1b 100644
--- a/lib/getcwd.c
+++ b/lib/getcwd.c
@@ -60,10 +60,7 @@
# define _D_ALLOC_NAMLEN(d) (_D_EXACT_NAMLEN (d) + 1)
#endif
-#if HAVE_UNISTD_H || _LIBC
-# include <unistd.h>
-#endif
-
+#include <unistd.h>
#include <stdlib.h>
#include <string.h>