From: Rusty Russell Date: Wed, 24 Aug 2011 03:22:59 +0000 (+0930) Subject: tdb: don't define _XOPEN_SOURCE ourselves, let config.h do it. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=87c2b6cea6347a3514e262d8a641b4e6eb3a77e6 tdb: don't define _XOPEN_SOURCE ourselves, let config.h do it. This is the CCAN Way. Plus, eliminates a compile warning here. --- diff --git a/ccan/tdb/tdb_private.h b/ccan/tdb/tdb_private.h index babf01bd..4faf8989 100644 --- a/ccan/tdb/tdb_private.h +++ b/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 #include @@ -46,7 +46,6 @@ #include #include #include -#include "config.h" #endif #include "tdb.h"