]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix shctx build on RHEL with futex
authorWilly Tarreau <w@1wt.eu>
Tue, 4 Sep 2012 10:26:26 +0000 (12:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 4 Sep 2012 10:26:26 +0000 (12:26 +0200)
On RHEL/CentOS, linux/futex.h uses an u32 type which is never declared
anywhere. Let's set it with a #define in order to fix the issue without
causing conflicts with possible typedefs on other platforms.

src/shctx.c

index 5fe2e7eada260ef4f7bcc6c63ebf3a83bd5b4af6..c6c67371be078b35d09251356caed368ef3169e5 100644 (file)
@@ -14,6 +14,9 @@
 #include <sys/mman.h>
 #ifdef USE_SYSCALL_FUTEX
 #include <unistd.h>
+#ifndef u32
+#define u32 unsigned int
+#endif
 #include <linux/futex.h>
 #include <sys/syscall.h>
 #else /* USE_SYSCALL_FUTEX */