summaryrefslogtreecommitdiff
path: root/libiberty/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/getcwd.c')
-rw-r--r--libiberty/getcwd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/getcwd.c b/libiberty/getcwd.c
index 60c1dd84eed..06d55c04f58 100644
--- a/libiberty/getcwd.c
+++ b/libiberty/getcwd.c
@@ -20,7 +20,9 @@ BUGS
*/
-#ifndef NO_SYS_PARAM_H
+#include "config.h"
+
+#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <errno.h>