freeipmi/freeipmi-0.6.4-argmax.patch
2008-07-29 12:11:20 +00:00

17 lines
703 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-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. 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>
#include <freeipmi/api/ipmi-chassis-cmds-api.h>
#include <freeipmi/api/ipmi-device-global-cmds-api.h>