tdb2: use config.h instead of setting _XOPEN_SOURCE etc.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:22 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:22 +0000 (22:12 +1030)
ccan/tdb2/private.h
ccan/tdb2/test/run-56-open-during-transaction.c
ccan/tdb2/test/run-57-die-during-transaction.c

index c57b3ba9283bc54d907e4ddd886945a1d880435d..e15d1ad835968bfe76a89ac97f64ead1e6db1b2a 100644 (file)
@@ -18,8 +18,7 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _XOPEN_SOURCE 500
-#define _FILE_OFFSET_BITS 64
+#include "config.h"
 #include <stdint.h>
 #include <stdbool.h>
 #include <stdlib.h>
@@ -33,7 +32,6 @@
 #include <stdio.h>
 #include <utime.h>
 #include <unistd.h>
-#include "config.h"
 #include <ccan/tdb2/tdb2.h>
 #include <ccan/likely/likely.h>
 #include <ccan/compiler/compiler.h>
index 80a0b43c6c1c34d451bf6810b6386f3255313e77..8a6a0e52720ee2e3ba91da78519fe28adc86f4db 100644 (file)
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#include "config.h"
 #include <unistd.h>
 #include "lock-tracking.h"
 
index f9b0426ea02f237bdcc46d4afc5fb3937ccf419f..b6c3557ad5eea8934afb208f5d3096cbc2850405 100644 (file)
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#include "config.h"
 #include <unistd.h>
 #include "lock-tracking.h"
 #include <ccan/tap/tap.h>