Browse Source

tdb: don't define _XOPEN_SOURCE ourselves, let config.h do it.

This is the CCAN Way.  Plus, eliminates a compile warning here.
Rusty Russell 14 years ago
parent
commit
87c2b6cea6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ccan/tdb/tdb_private.h

+ 1 - 2
ccan/tdb/tdb_private.h

@@ -33,7 +33,7 @@
 #include "system/select.h"
 #include "system/wait.h"
 #else
-#define _XOPEN_SOURCE 500
+#include "config.h"
 #define _FILE_OFFSET_BITS 64
 #include <stdint.h>
 #include <stdbool.h>
@@ -46,7 +46,6 @@
 #include <errno.h>
 #include <stdio.h>
 #include <utime.h>
-#include "config.h"
 #endif
 #include "tdb.h"