lib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 14 Mar 2012 05:01:01 +0000 (15:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 14 Mar 2012 09:12:26 +0000 (10:12 +0100)
These were relics: they don't need to be defined here as long as we are
careful to include the replace headers before any standard headers (we are).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 10:12:26 CET 2012 on sn-devel-104

17 files changed:
lib/tdb/test/run-3G-file.c
lib/tdb/test/run-bad-tdb-header.c
lib/tdb/test/run-check.c
lib/tdb/test/run-corrupt.c
lib/tdb/test/run-die-during-transaction.c
lib/tdb/test/run-endian.c
lib/tdb/test/run-incompatible.c
lib/tdb/test/run-nested-transactions.c
lib/tdb/test/run-nested-traverse.c
lib/tdb/test/run-no-lock-during-traverse.c
lib/tdb/test/run-oldhash.c
lib/tdb/test/run-readonly-check.c
lib/tdb/test/run-rwlock-check.c
lib/tdb/test/run-traverse-in-transaction.c
lib/tdb/test/run-wronghash-fail.c
lib/tdb/test/run-zero-append.c
lib/tdb/test/run.c

index 5ea4fcfbde21fcdfda120d7054ba23baae414037..cc700c267655efa494ff1fcd2d0583147adff7c5 100644 (file)
@@ -1,6 +1,3 @@
-/* We need this otherwise fcntl locking fails. */
-#define _FILE_OFFSET_BITS 64
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 8d3accbb9a74dc5b6eab79e5a8533af0aae57d49..9dbb6225c91c61e94f509d48d85c504770025812 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index b9246b645f9043d727b2c92f5a5115c5b8d5a301..455731db944138b457c0ee1bc32d61110483d293 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 039e6a9d9da84a166bd83a770c308665769d09fe..5d86e71498bec9749332f2467a3f15c0105e38ff 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index c4fb3f4e4585275ed78905739931b1a14ec771c4..e65f81111932610cf466c15f651598bcbd95c9d5 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include <unistd.h>
 #include "lock-tracking.h"
 static ssize_t pwrite_check(int fd, const void *buf, size_t count, off_t offset);
index 43d4b136d6531652132b1d394252b45cd239600e..bf6e71389f8af27b8243cd495d0bd71d32e7c761 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 31d4f99bc7297e694f2b20a8f38c53d7e83f8492..6097026b49a452521ab4b7a49d3ae4f3b01ad69d 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index c4765def341fa78cc3f129485d9ca2b389119c58..45bc56338daab779121cd7c388da630d0d5764ed 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 18bcb0bc5801d149506adff886ca560825e1341a..1742b1110813339e12e608db12abf6d880bf75d6 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "lock-tracking.h"
 #define fcntl fcntl_with_lockcheck
 #include "../common/tdb_private.h"
index 01f620857775defdaf481a170680b0390ad37526..21e6d88e9cf21d8539d93ba5012e669fffe44efd 100644 (file)
@@ -1,5 +1,3 @@
-#define _XOPEN_SOURCE 500
-#include <unistd.h>
 #include "lock-tracking.h"
 
 #define fcntl fcntl_with_lockcheck
index 3b94f1d37d946bd8a73adf971261d1842328917d..22c6d13c179c4b01576152956fd8bb24a5b0a422 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index eb8f74f69f9f086bd7f514d1780a889966455e8f..b4b85fb7c71ea0fc5462b676f3aaaef089e3b73e 100644 (file)
@@ -1,6 +1,5 @@
 /* We should be able to tdb_check a O_RDONLY tdb, and we were previously allowed
  * to tdb_check() inside a transaction (though that's paranoia!). */
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index b424668fa49c3a54334edde674e2651e6e057115..d7a86cd2c980e12df02722e73e38f7b2ca96b7af 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 1d6eb3a5a5a1f13f62e8fe51ecb4ef5cabfcf48a..44c3dabc917e33b307d3ee33b3423bfd057405de 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "lock-tracking.h"
 #define fcntl fcntl_with_lockcheck
 #include "../common/tdb_private.h"
index bac9f1fd3ca81d6c966df9ca1cdd8fa133dc821a..e37aafdd9ee848e8625ee53c27f6f134360b92c6 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index 72c5c2a4a93f4ab8e20a5df4a407530656dcc2ec..0ef30737ba6caa0e0c7776316193d78fe63de5dd 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
index e92b8d0a9a216d7558411c12e011eb4b7c05c21a..89e55b7f65450f83eb149f0858925f9a149a7c14 100644 (file)
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"