- Fix build problem with glibc-2.8 and missing ARG_MAX definition
This commit is contained in:
parent
e7e0000f0e
commit
56d1ca6e50
19
freeipmi-0.6.4-argmax.patch
Normal file
19
freeipmi-0.6.4-argmax.patch
Normal file
@ -0,0 +1,19 @@
|
||||
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>
|
@ -19,6 +19,7 @@ URL: http://www.gnu.org/software/freeipmi/
|
||||
Source: ftp://ftp.zresearch.com/pub/freeipmi/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: freeipmi-0.5.1-regex.patch
|
||||
Patch2: freeipmi-0.6.4-silent.patch
|
||||
Patch3: freeipmi-0.6.4-argmax.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: libgcrypt-devel texinfo
|
||||
Requires(post): info
|
||||
|
Loading…
Reference in New Issue
Block a user