mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUILD: compat: fix -Wundef on SO_REUSEADDR
If USE_NETFILTER is set and not SO_REUSEPORT, we evaluate SO_REUSEADDR, let's fix that to check that it's defined.
This commit is contained in:
parent
5d9ddc5442
commit
1a2134138a
1 changed files with 2 additions and 2 deletions
|
|
@ -207,9 +207,9 @@ typedef struct { } empty_t;
|
|||
* USE_NETFILTER define.
|
||||
*/
|
||||
#if !defined(SO_REUSEPORT) && defined(USE_NETFILTER)
|
||||
#if (SO_REUSEADDR == 2)
|
||||
#if defined(SO_REUSEADDR) && (SO_REUSEADDR == 2)
|
||||
#define SO_REUSEPORT 15
|
||||
#elif (SO_REUSEADDR == 0x0004)
|
||||
#elif defined(SO_REUSEADDR) && (SO_REUSEADDR == 0x0004)
|
||||
#define SO_REUSEPORT 0x0200
|
||||
#endif /* SO_REUSEADDR */
|
||||
#endif /* SO_REUSEPORT */
|
||||
|
|
|
|||
Loading…
Reference in a new issue