define _BSD_SOURCE

This commit is contained in:
Richard Aas 2012-06-11 05:38:38 +00:00
parent 2266ec4a9b
commit d8dede46e8
4 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
#define _BSD_SOURCE 1
#include <string.h>
#include <unistd.h>
#define __USE_POSIX 1 /**< Use POSIX flag */

View file

@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
#define _BSD_SOURCE 1
#include <re_types.h>
#include <re_fmt.h>
#include <re_mbuf.h>

View file

@ -4,7 +4,7 @@
* Copyright (C) 2010 Creytiv.com
*/
#ifdef HAVE_INET_PTON
#define __USE_BSD 1 /**< Use BSD code */
#define _BSD_SOURCE 1 /**< Use BSD code */
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

View file

@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
#define _BSD_SOURCE 1
#include <string.h>
#include <re_types.h>
#include <re_fmt.h>