sa ntop/pton: define _BSD_SOURCE and _DEFAULT_SOURCE
This commit is contained in:
parent
88aa3a0097
commit
60fa9db55c
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
*
|
||||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
|
||||
#ifdef HAVE_INET_PTON
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#define _BSD_SOURCE 1 /**< Use BSD code */
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue