Summary: | net-misc/netkit-rsh-0.17-r9 build error after glibc-2.8_p20080602 update: 'ARG_MAX' undeclared | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jose daLuz <jdaluz> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jose daLuz
2008-06-08 18:16:24 UTC
See http://www.nabble.com/FYI:--glibc-2.8-may-break-some-of-your-packages-td16625128.html "glibc 2.8 no longer defines ARG_MAX constant in linux, so you may see: foobar.c:N: error: 'ARG_MAX' undeclared (first use in this function) To fix this problem you can use something like this #include <unistd.h> /* only if not already there !! */ #if defined(_SC_ARG_MAX) # if defined(ARG_MAX) # undef ARG_MAX # endif # define ARG_MAX sysconf (_SC_ARG_MAX) #endif" *** This bug has been marked as a duplicate of bug 225341 *** |