- Hopefully final fix for the ARG_MAX problem.
This commit is contained in:
parent
e3c9b0ebd7
commit
683a2157cc
@ -1,17 +1,14 @@
|
||||
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 @@
|
||||
--- freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h.argmax 2008-03-28 01:14:49.000000000 +0100
|
||||
+++ freeipmi-0.6.4/libfreeipmi/include/freeipmi/freeipmi.h 2008-07-29 14:00:21.000000000 +0200
|
||||
@@ -23,6 +23,12 @@
|
||||
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)
|
||||
+/* GLIBC >= 2.8 have ARG_MAX replaced by _SC_ARG_MAX. As we need it in an
|
||||
+ * array we need to hardwire it with the Posix.1 minimum of 4096 :/ */
|
||||
+#ifndef ARG_MAX
|
||||
+#define ARG_MAX 4096
|
||||
+#endif
|
||||
+
|
||||
#include <freeipmi/api/ipmi-api.h>
|
||||
|
Loading…
Reference in New Issue
Block a user