BUILD: compat: always set _POSIX_VERSION to ease comparisons

Sometimes we need to compare it to known versions, let's make sure it's
always defined. We set it to zero if undefined so that it cannot match
any comparison.
This commit is contained in:
Willy Tarreau 2025-08-05 15:59:11 +02:00
parent 2ce0c63206
commit e921fe894f

View File

@ -120,6 +120,11 @@ typedef struct { } empty_t;
})
#endif
/* always set a _POSIX_VERSION if there isn't any, in order to ease compares */
#ifndef _POSIX_VERSION
# define _POSIX_VERSION 0
#endif
/* this is for libc5 for example */
#ifndef TCP_NODELAY
#define TCP_NODELAY 1