summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/save-cwd.c5
-rw-r--r--lib/xgetcwd.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/save-cwd.c b/lib/save-cwd.c
index b7b85a1b5..6fb39f0aa 100644
--- a/lib/save-cwd.c
+++ b/lib/save-cwd.c
@@ -22,10 +22,7 @@
#endif
#include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>
diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c
index ed425200d..2089b8897 100644
--- a/lib/xgetcwd.c
+++ b/lib/xgetcwd.c
@@ -28,10 +28,8 @@ extern int errno;
#endif
#include <sys/types.h>
+#include <stdlib.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif