ssl_mail_client: Define _XOPEN_SOURCE=600 for gethostname

Fixes building this program on NetBSD 9.0.

Signed-off-by: nia <nia@netbsd.org>
This commit is contained in:
nia 2020-06-11 12:30:12 +01:00
parent 0b01fd9b67
commit 7eb0e62f64

View file

@ -23,6 +23,7 @@
* be set before config.h, which pulls in glibc's features.h indirectly.
* Harmless on other platforms. */
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 600
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"