define _DEFAULT_SOURCE to avoid build warnings
This commit is contained in:
parent
ca5d02cdc5
commit
8457a5ed18
7 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/nameser.h>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#define __USE_POSIX 1 /**< Use POSIX flag */
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(WIN32) && !defined(CYGWIN)
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <re_types.h>
|
||||
#include <re_fmt.h>
|
||||
#include <re_mbuf.h>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#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>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2010 Creytiv.com
|
||||
*/
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <string.h>
|
||||
#include <re_types.h>
|
||||
#include <re_fmt.h>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#define _BSD_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#include <re_types.h>
|
||||
#include <re_fmt.h>
|
||||
#include <re_sa.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue