common: Add some missing #includes
authorMartin Schwenke <martin@meltin.net>
Thu, 4 Sep 2014 03:33:58 +0000 (13:33 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 27 Mar 2015 02:51:31 +0000 (13:51 +1100)
To avoid warnings when using --enable-developer, which uses
-Wmissing-prototypes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 751ad4b62561b140b7a33d66e63907411a748501)

common/cmdline.c
common/system_common.c
common/system_util.c

index ca214b431b60841b6c1e7e33645c3dd8980d6aa4..27c7ed9305c7c01cde1523bfd963ca212e144abf 100644 (file)
@@ -25,6 +25,8 @@
 #include "../common/rb_tree.h"
 #include <ctype.h>
 
+#include "internal/cmdline.h"
+
 /* Handle common command line options for ctdb test progs
  */
 
index 01ac2bf2d7a980c1834d009e618de160aeb43fa2..899f3b56bebc6927089da675997c30362a4d1dc2 100644 (file)
@@ -21,6 +21,8 @@
 #include "includes.h"
 #include "system/network.h"
 
+#include "ctdb_private.h"
+
 /*
   uint16 checksum for n bytes
  */
index 6fe4152e48c4f82724fbd3918a22e47c523c5707..6ff82f7147be36bcb6e07b9fe1cfac8a5bf16504 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <libgen.h>
 
+#include "ctdb_private.h"
 
 #if HAVE_SCHED_H
 #include <sched.h>