diff options
author | ThomasVolkert <thomas@homer-conferencing.com> | 2012-12-18 15:32:33 +0100 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-12-18 21:41:08 -0800 |
commit | 389a2d7e9f375e9d6998078e38a2ab841f18def5 (patch) | |
tree | 85b076bd42e25a734d42534d599d42aaa1ab45f1 | |
parent | 6618c579da4f90756391af7334ea10e03873af78 (diff) | |
download | libnet-389a2d7e9f375e9d6998078e38a2ab841f18def5.tar.gz |
Added guards around definitions of _GNU_SOURCE to avoid redefinitions
-rw-r--r-- | libnet/include/win32/libnet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnet/include/win32/libnet.h b/libnet/include/win32/libnet.h index bd28f21..9a6f8b2 100644 --- a/libnet/include/win32/libnet.h +++ b/libnet/include/win32/libnet.h @@ -84,7 +84,9 @@ extern "C" { /* To use Win32 native versions */
#define WPCAP 1
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
|