From a5fbfd7cd89738938ae6982d79956a6cd66d7d02 Mon Sep 17 00:00:00 2001 From: k-stachowiak Date: Fri, 6 Jul 2018 14:42:22 +0200 Subject: [PATCH] Enable snprintf on FreeBSD --- library/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509.c b/library/x509.c index b47599b0d..58d6a8911 100644 --- a/library/x509.c +++ b/library/x509.c @@ -31,7 +31,7 @@ /* Ensure gmtime_r is available even with -std=c99; must be included before * config.h, which pulls in glibc's features.h. Harmless on other platforms. */ -#define _XOPEN_SOURCE 500 +#define _POSIX_C_SOURCE 200112L #if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/config.h"