diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-05-24 14:52:09 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-05-29 15:17:20 +1000 |
commit | 4069ccf22f9c8c5ea56949de99d6e8951e48c4ba (patch) | |
tree | eb058dddf1c228d7df673cc065c4c25a9a905caf /ctdb/tests/src | |
parent | 6635092a767a2ae4815fab64f1cd5e7ace59cb83 (diff) | |
download | samba-4069ccf22f9c8c5ea56949de99d6e8951e48c4ba.tar.gz samba-4069ccf22f9c8c5ea56949de99d6e8951e48c4ba.tar.xz samba-4069ccf22f9c8c5ea56949de99d6e8951e48c4ba.zip |
tests: Include system/time.h to support building on AIX
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 0320bb4f8ca8171812ec7f41556aed847c74bfb4)
Diffstat (limited to 'ctdb/tests/src')
-rw-r--r-- | ctdb/tests/src/ctdb_fetch_readonly_loop.c | 2 | ||||
-rw-r--r-- | ctdb/tests/src/ctdb_test.c | 4 | ||||
-rw-r--r-- | ctdb/tests/src/ctdb_trackingdb_test.c | 3 |
3 files changed, 2 insertions, 7 deletions
diff --git a/ctdb/tests/src/ctdb_fetch_readonly_loop.c b/ctdb/tests/src/ctdb_fetch_readonly_loop.c index 557954f2e2..d3cc72c7de 100644 --- a/ctdb/tests/src/ctdb_fetch_readonly_loop.c +++ b/ctdb/tests/src/ctdb_fetch_readonly_loop.c @@ -18,9 +18,9 @@ along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <time.h> #include "includes.h" #include "system/filesys.h" +#include "system/time.h" #include "popt.h" #include "cmdline.h" #include "ctdb_private.h" diff --git a/ctdb/tests/src/ctdb_test.c b/ctdb/tests/src/ctdb_test.c index ea1e7aa1ce..5319305795 100644 --- a/ctdb/tests/src/ctdb_test.c +++ b/ctdb/tests/src/ctdb_test.c @@ -23,10 +23,6 @@ #ifdef CTDB_TEST_USE_MAIN /* Use main, stubify some stuff */ -#define _GNU_SOURCE -#include <stdio.h> -#include <sys/socket.h> - #define ctdb_cmdline_client(x, y) ctdb_cmdline_client_foobar(x, y) #define ctdb_get_socketname(x) ctdb_get_socketname_foobar(x) diff --git a/ctdb/tests/src/ctdb_trackingdb_test.c b/ctdb/tests/src/ctdb_trackingdb_test.c index 0dcdcb49ce..d8525d560a 100644 --- a/ctdb/tests/src/ctdb_trackingdb_test.c +++ b/ctdb/tests/src/ctdb_trackingdb_test.c @@ -22,10 +22,9 @@ along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <stdlib.h> -#include <time.h> #include "includes.h" #include "system/filesys.h" +#include "system/time.h" #include "popt.h" #include "cmdline.h" #include "ctdb_private.h" |