mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-06 23:32:34 -04:00
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.
This commit is contained in:
parent
783f25800c
commit
18b2059a75
1 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue