tests: Include system/time.h to support building on AIX
authorAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 04:52:09 +0000 (14:52 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 29 May 2013 05:17:20 +0000 (15:17 +1000)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
tests/src/ctdb_fetch_readonly_loop.c
tests/src/ctdb_test.c
tests/src/ctdb_trackingdb_test.c

index 557954f2e209bc475cb89672855b22663bdcd637..d3cc72c7de7912897cc11ae97780aba52570aea1 100644 (file)
@@ -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"
index ea1e7aa1ce1e5dba454c99676f063623b932f669..53193057954d976db98e97aac3199038bbd16f55 100644 (file)
 #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)
 
index 0dcdcb49ce15c788147419292074d2db370dc0d2..d8525d560ae86a68b3e8a3a9a7c7e8a1c9e47406 100644 (file)
    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"