Bug 2929 - getcwd.c fails to build due to missing MAX define
Summary: getcwd.c fails to build due to missing MAX define
Status: RESOLVED DUPLICATE of bug 333
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-15 03:44 UTC by Mike Frysinger
Modified: 2015-01-29 13:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
glibc-getcwd-param-MAX.patch (184 bytes, patch)
2006-07-15 03:45 UTC, Mike Frysinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2006-07-15 03:44:17 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
Comment 1 Mike Frysinger 2006-07-15 03:45:10 UTC
Created attachment 1165 [details]
glibc-getcwd-param-MAX.patch

URL: http://sourceware.org/ml/libc-alpha/2006-06/msg00068.html
Comment 2 Ulrich Drepper 2006-08-03 08:18:51 UTC
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 ***