summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctdb/libctdb/control.c1
-rw-r--r--ctdb/libctdb/ctdb.c2
-rw-r--r--ctdb/libctdb/io_elem.c1
-rw-r--r--ctdb/libctdb/local_tdb.c1
-rw-r--r--ctdb/libctdb/logging.c1
-rw-r--r--ctdb/libctdb/messages.c1
-rw-r--r--ctdb/libctdb/sync.c1
7 files changed, 8 insertions, 0 deletions
diff --git a/ctdb/libctdb/control.c b/ctdb/libctdb/control.c
index 8741ad9c0b..b4c54cd660 100644
--- a/ctdb/libctdb/control.c
+++ b/ctdb/libctdb/control.c
@@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
#include <string.h>
#include <ctdb.h>
#include <ctdb_protocol.h>
diff --git a/ctdb/libctdb/ctdb.c b/ctdb/libctdb/ctdb.c
index 13ccf9e4de..191b097af1 100644
--- a/ctdb/libctdb/ctdb.c
+++ b/ctdb/libctdb/ctdb.c
@@ -17,6 +17,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
+#include <string.h>
#include <ctdb.h>
#include <poll.h>
#include <errno.h>
diff --git a/ctdb/libctdb/io_elem.c b/ctdb/libctdb/io_elem.c
index 81d44e4369..572237b1c2 100644
--- a/ctdb/libctdb/io_elem.c
+++ b/ctdb/libctdb/io_elem.c
@@ -17,6 +17,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <sys/types.h>
+#include <sys/socket.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/ctdb/libctdb/local_tdb.c b/ctdb/libctdb/local_tdb.c
index 705be2b548..506e9740f5 100644
--- a/ctdb/libctdb/local_tdb.c
+++ b/ctdb/libctdb/local_tdb.c
@@ -18,6 +18,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
#include <ctdb.h>
#include <tdb.h>
#include <stdlib.h>
diff --git a/ctdb/libctdb/logging.c b/ctdb/libctdb/logging.c
index 83f47742d7..d897b6f61c 100644
--- a/ctdb/libctdb/logging.c
+++ b/ctdb/libctdb/logging.c
@@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
#include <stdio.h>
#include <errno.h>
#include <ctdb.h>
diff --git a/ctdb/libctdb/messages.c b/ctdb/libctdb/messages.c
index 66b41b5255..254df028eb 100644
--- a/ctdb/libctdb/messages.c
+++ b/ctdb/libctdb/messages.c
@@ -17,6 +17,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
#include "libctdb_private.h"
#include "messages.h"
#include "io_elem.h"
diff --git a/ctdb/libctdb/sync.c b/ctdb/libctdb/sync.c
index 4b68cd1e32..0e175f7f12 100644
--- a/ctdb/libctdb/sync.c
+++ b/ctdb/libctdb/sync.c
@@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <sys/socket.h>
#include <ctdb.h>
#include <stdbool.h>
#include <poll.h>