Skip to content

Commit

Permalink
Keep _BSD_SOURCE for glibc < 2.19.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Chrétien committed Apr 23, 2015
1 parent 6db0d0e commit d05fe08
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PacketBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <queue>
#include <time.h>
Expand Down
1 change: 1 addition & 0 deletions src/Sniffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
#include "../config.h"
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <pthread.h>
#include <cassert>
Expand Down
1 change: 1 addition & 0 deletions src/Sniffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define SNIFFER_H 1

#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT

#ifdef HAVE_PCAP_PCAP_H
Expand Down
1 change: 1 addition & 0 deletions src/SortedIterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <stdlib.h>
#include <list>
Expand Down
1 change: 1 addition & 0 deletions src/TCContainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <unistd.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions src/TCContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define TCCONTAINER_H 1

#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <sys/types.h>
#include <pthread.h>
Expand Down
1 change: 1 addition & 0 deletions src/TCPConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions src/TextUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define TEXTUI_H 1

#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include <curses.h>
#include <pthread.h>
Expand Down
1 change: 1 addition & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
*/
#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#define _REENTRANT
#include "../config.h" // for PACKAGE and VERSION
#include <stdio.h>
Expand Down

0 comments on commit d05fe08

Please sign in to comment.