From 60fa9db55c3b523dc4c31c68f673c4cec27ed23d Mon Sep 17 00:00:00 2001 From: Richard Aas Date: Mon, 22 Feb 2016 15:10:41 +0000 Subject: [PATCH] sa ntop/pton: define _BSD_SOURCE and _DEFAULT_SOURCE --- src/sa/ntop.c | 4 ++++ src/sa/pton.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/sa/ntop.c b/src/sa/ntop.c index ebb027a..381cd60 100644 --- a/src/sa/ntop.c +++ b/src/sa/ntop.c @@ -3,6 +3,10 @@ * * Copyright (C) 2010 Creytiv.com */ + +#define _BSD_SOURCE 1 +#define _DEFAULT_SOURCE 1 + #ifdef HAVE_INET_NTOP #ifdef WIN32 #ifdef _MSC_VER diff --git a/src/sa/pton.c b/src/sa/pton.c index 1779782..a9b7ae5 100644 --- a/src/sa/pton.c +++ b/src/sa/pton.c @@ -3,12 +3,14 @@ * * Copyright (C) 2010 Creytiv.com */ + +#define _BSD_SOURCE 1 +#define _DEFAULT_SOURCE 1 + #ifdef HAVE_INET_PTON #ifdef WIN32 #include #else -#define _BSD_SOURCE 1 /**< Use BSD code */ -#define _DEFAULT_SOURCE 1 #include #include #include