aboutsummaryrefslogtreecommitdiff
path: root/misc/tst-tsearch.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-tsearch.c')
-rw-r--r--misc/tst-tsearch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/tst-tsearch.c b/misc/tst-tsearch.c
index d7551ff..18cf89c 100644
--- a/misc/tst-tsearch.c
+++ b/misc/tst-tsearch.c
@@ -17,10 +17,13 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define _GNU_SOURCE 1
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <search.h>
#define SEED 0