Sources Bugzilla – Bug 2929
getcwd.c fails to build due to missing MAX define
Last modified: 2006-08-03 08:18:51 UTC
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
Created attachment 1165 [details] glibc-getcwd-param-MAX.patch URL: http://sourceware.org/ml/libc-alpha/2006-06/msg00068.html
Beside, adjust all archs headers so that they match x86 and x86-64 so that these problems don't happen again. *** This bug has been marked as a duplicate of 333 ***