Use _XOPEN_SOURCE instead of _POSIX_C_SOURCE

It seems this is required to get all the IPv6 definitions, though most
systems aren't very picky. NetBSD seems to be one of those picky
systems, though.
This commit is contained in:
Christopher Wellons 2019-03-27 09:40:20 -04:00
parent 9f4bdc123d
commit 494c68b8d7

View File

@ -1,4 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 600
#include <time.h>
#include <errno.h>
#include <stdio.h>