Skip to content

Commit

Permalink
nbperf: fix implicit decl of getline() and strndup() on GLIBC 2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Oct 2, 2016
1 parent bd35ef8 commit 07a65f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nbperf/nbperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
* SUCH DAMAGE.
*/

#undef _GNU_SOURCE
#define _GNU_SOURCE
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700

#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
Expand Down

0 comments on commit 07a65f0

Please sign in to comment.