This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

include sys/param.h in getcwd.c


the recent change to use MAX(getpagesize()) in the linux getcwd.c assumes that 
the header files it includes already will eventually pull in sys/param.h and 
setup the MAX() define ... the attached patch adds an explicit sys/param.h 
include to get rid of this implicit include path
-mike

Attachment: pgp00000.pgp
Description: PGP signature

2006-06-18  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.

--- sysdeps/unix/sysv/linux/getcwd.c
+++ sysdeps/unix/sysv/linux/getcwd.c
@@ -24,6 +24,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <sys/param.h>
 
 #include <sysdep.h>
 #include <sys/syscall.h>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]