Skip to content

Commit

Permalink
ssl_mail_client: Define _XOPEN_SOURCE=600 for gethostname
Browse files Browse the repository at this point in the history
Fixes building this program on NetBSD 9.0.

Signed-off-by: nia <[email protected]>
  • Loading branch information
alarixnia committed Jun 11, 2020
1 parent 0b01fd9 commit 7eb0e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/ssl/ssl_mail_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7eb0e62

Please sign in to comment.