summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2017-12-17 10:23:48 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2017-12-17 10:23:48 +0000
commite87234017ae858ab39c4a8bbafba635b639b5656 (patch)
tree9fce21ed8884e1e66b08304703756f47ffcc9c7e
parentfd90aac8c1b973e25eb130b386d87aafe9f227d8 (diff)
downloadlibowfat-e87234017ae858ab39c4a8bbafba635b639b5656.tar.gz
libowfat-e87234017ae858ab39c4a8bbafba635b639b5656.zip
#define _POSIX_SOURCE for FreeBSD
-rw-r--r--socket/socket_sctp6b.c1
-rw-r--r--socket/socket_tcp6b.c1
-rw-r--r--socket/socket_udp6.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/socket/socket_sctp6b.c b/socket/socket_sctp6b.c
index 8995eb8..9e107e4 100644
--- a/socket/socket_sctp6b.c
+++ b/socket/socket_sctp6b.c
@@ -1,3 +1,4 @@
+#define _POSIX_SOURCE
#include <sys/types.h>
#ifndef __MINGW32__
#include <unistd.h>
diff --git a/socket/socket_tcp6b.c b/socket/socket_tcp6b.c
index 2910212..f563b5b 100644
--- a/socket/socket_tcp6b.c
+++ b/socket/socket_tcp6b.c
@@ -1,3 +1,4 @@
+#define _POSIX_SOURCE
#include <sys/types.h>
#ifndef __MINGW32__
#include <unistd.h>
diff --git a/socket/socket_udp6.c b/socket/socket_udp6.c
index 72b3971..b34df7f 100644
--- a/socket/socket_udp6.c
+++ b/socket/socket_udp6.c
@@ -1,3 +1,4 @@
+#define _POSIX_SOURCE
#include <sys/types.h>
#ifndef __MINGW32__
#include <unistd.h>