aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/libtest/lib503.c6
-rw-r--r--tests/libtest/lib504.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c
index a6f5d3f2c..c77e084bc 100644
--- a/tests/libtest/lib503.c
+++ b/tests/libtest/lib503.c
@@ -1,5 +1,11 @@
#include "test.h"
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#include <sys/time.h>
+#include <sys/types.h>
+
/*
* Source code in here hugely as reported in bug report 651460 by
* Christopher R. Palmer.
diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c
index f6a066570..d340c509c 100644
--- a/tests/libtest/lib504.c
+++ b/tests/libtest/lib504.c
@@ -1,5 +1,11 @@
#include "test.h"
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#include <sys/time.h>
+#include <sys/types.h>
+
/*
* Source code in here hugely as reported in bug report 651464 by
* Christopher R. Palmer.