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:
Willy Tarreau 2021-08-28 12:05:32 +02:00
parent e15615c1ff
commit 33056436c7

View File

@ -284,7 +284,7 @@
/* Maximum host name length */
#ifndef MAX_HOSTNAME_LEN
#if MAXHOSTNAMELEN
#ifdef MAXHOSTNAMELEN
#define MAX_HOSTNAME_LEN MAXHOSTNAMELEN
#else
#define MAX_HOSTNAME_LEN 64