commit | a5fbfd7cd89738938ae6982d79956a6cd66d7d02 | [log] [tgz] |
---|---|---|
author | k-stachowiak <krzysiek.stachowiak@gmail.com> | Fri Jul 06 14:42:22 2018 +0200 |
committer | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | Sun Jul 08 13:22:11 2018 +0100 |
tree | 461e053fffee45ac5587538d1fdc3c0fd3a63d57 | |
parent | 61fa436ad36f9374429a8bb5e5339726fb12553c [diff] [blame] |
Enable snprintf on FreeBSD
diff --git a/library/x509.c b/library/x509.c index b47599b..58d6a89 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"