From: Willy Tarreau Date: Tue, 4 Sep 2012 10:26:26 +0000 (+0200) Subject: BUILD: ssl: fix shctx build on RHEL with futex X-Git-Tag: v1.5-dev12~24 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=18b2059a75363712075263742e3bd20215787921;p=haproxy.git 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. --- 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 */