20 lines
693 B
Diff
20 lines
693 B
Diff
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 <unistd.h>
|
|
+#ifdef _SC_ARG_MAX
|
|
+#ifdef ARG_MAX
|
|
+#undef ARG_MAX
|
|
+#endif
|
|
+#define ARG_MAX sysconf(_SC_ARG_MAX)
|
|
+#endif
|
|
+
|
|
#include <freeipmi/api/ipmi-api.h>
|
|
#include <freeipmi/api/ipmi-chassis-cmds-api.h>
|
|
#include <freeipmi/api/ipmi-device-global-cmds-api.h>
|