Signed-off-by: Amitay Isaacs <amitay@gmail.com>
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"
#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)
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"