Skip to content

Commit

Permalink
Fix warning for glibc >= 2.20.
Browse files Browse the repository at this point in the history
This should fix #1.
  • Loading branch information
Benjamin Chrétien committed Apr 23, 2015
1 parent 4f10319 commit 6db0d0e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/PacketBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <queue>
#include <time.h>
Expand Down
2 changes: 1 addition & 1 deletion src/Sniffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/
#include "../config.h"
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <pthread.h>
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion src/Sniffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef SNIFFER_H
#define SNIFFER_H 1

#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT

#ifdef HAVE_PCAP_PCAP_H
Expand Down
2 changes: 1 addition & 1 deletion src/SortedIterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <stdlib.h>
#include <list>
Expand Down
2 changes: 1 addition & 1 deletion src/TCContainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <unistd.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/TCContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef TCCONTAINER_H
#define TCCONTAINER_H 1

#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <sys/types.h>
#include <pthread.h>
Expand Down
2 changes: 1 addition & 1 deletion src/TCPConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/TextUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef TEXTUI_H
#define TEXTUI_H 1

#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include <curses.h>
#include <pthread.h>
Expand Down
2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _REENTRANT
#include "../config.h" // for PACKAGE and VERSION
#include <stdio.h>
Expand Down

0 comments on commit 6db0d0e

Please sign in to comment.