diff -up freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h.argmax freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h --- freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h.argmax 2008-07-29 13:26:05.000000000 +0200 +++ freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h 2008-07-29 13:30:16.000000000 +0200 @@ -23,6 +23,15 @@ extern "C" { #endif +/* GLIBC >= 2.8 have ARG_MAX replaced by _SC_ARG_MAX */ +#include +#ifdef _SC_ARG_MAX +#ifdef ARG_MAX +#undef ARG_MAX +#endif +#define ARG_MAX sysconf(_SC_ARG_MAX) +#endif + #include #include #include