mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
BUILD/MINOR: defaults: eliminate warning on MAXHOSTNAMELEN with -Wundef
As reported in GH issue #1369, there is a single case of #if with a possibly undefined value in defaults.h which is on MAXHOSTNAMELEN. Let's turn it to a #ifdef.
This commit is contained in:
parent
e15615c1ff
commit
33056436c7
@ -284,7 +284,7 @@
|
|||||||
|
|
||||||
/* Maximum host name length */
|
/* Maximum host name length */
|
||||||
#ifndef MAX_HOSTNAME_LEN
|
#ifndef MAX_HOSTNAME_LEN
|
||||||
#if MAXHOSTNAMELEN
|
#ifdef MAXHOSTNAMELEN
|
||||||
#define MAX_HOSTNAME_LEN MAXHOSTNAMELEN
|
#define MAX_HOSTNAME_LEN MAXHOSTNAMELEN
|
||||||
#else
|
#else
|
||||||
#define MAX_HOSTNAME_LEN 64
|
#define MAX_HOSTNAME_LEN 64
|
||||||
|
Loading…
Reference in New Issue
Block a user