aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/posix/opendir.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f9a9bdcbea..cd846f94ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-01 Roland McGrath <roland@hack.frob.com>
+
+ * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
+
2013-05-01 Richard Smith <richard@metafoo.co.uk>
* misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c
index 0efeb5d30d..ddfc3a7510 100644
--- a/sysdeps/posix/opendir.c
+++ b/sysdeps/posix/opendir.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <dirent.h>
#include <fcntl.h>
+#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>