about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/posix/fdopendir.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f47f48d5ad..7dbea5ee09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-08-08  Roland McGrath  <roland@hack.frob.com>
 
+	* sysdeps/posix/fdopendir.c: Include <stddef.h>.
+
 	* sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
 	sysdeps/unix -> sysdeps/posix move.
 	* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
diff --git a/sysdeps/posix/fdopendir.c b/sysdeps/posix/fdopendir.c
index beddcbe029..0ffd3f963e 100644
--- a/sysdeps/posix/fdopendir.c
+++ b/sysdeps/posix/fdopendir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stddef.h>
 #include <sys/stat.h>
 
 #include <not-cancel.h>