From c913110506886b7d1d89f88a22ef18cb50abf38b Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 20 Oct 2015 20:15:46 +0200 Subject: [PATCH] Fix _POSIX_C_SOURCE definition so that getaddrinfo works --- src/socket_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_init.c b/src/socket_init.c index f20dbdf..a30251f 100644 --- a/src/socket_init.c +++ b/src/socket_init.c @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -#define _POSIX_SOURCE 1 +#define _POSIX_C_SOURCE 200112L #include // for atoi() and exit() #include // for errno