From 18b2059a75363712075263742e3bd20215787921 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 4 Sep 2012 12:26:26 +0200 Subject: [PATCH] BUILD: ssl: fix shctx build on RHEL with futex 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shctx.c b/src/shctx.c index 5fe2e7ead..c6c67371b 100644 --- a/src/shctx.c +++ b/src/shctx.c @@ -14,6 +14,9 @@ #include #ifdef USE_SYSCALL_FUTEX #include +#ifndef u32 +#define u32 unsigned int +#endif #include #include #else /* USE_SYSCALL_FUTEX */