summaryrefslogtreecommitdiff
path: root/host/src
diff options
context:
space:
mode:
Diffstat (limited to 'host/src')
-rw-r--r--host/src/fcall.c3
-rw-r--r--host/src/fcall_param.c3
-rw-r--r--host/src/netclock.c3
-rw-r--r--host/src/sci.c2
-rw-r--r--host/src/sci_msg.c6
-rw-r--r--host/src/station.c9
6 files changed, 17 insertions, 9 deletions
diff --git a/host/src/fcall.c b/host/src/fcall.c
index fbce7a46dd..88655af6e1 100644
--- a/host/src/fcall.c
+++ b/host/src/fcall.c
@@ -18,12 +18,13 @@
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
#include "host/inc/fcall.h"
#ifndef UNIT_TEST
#include "lib/swap.h"
+#include "host/inc/syscall.h"
#else /* UNIT_TEST */
+#include <unistd.h>
#include <arpa/inet.h>
#endif /* UNIT_TEST */
diff --git a/host/src/fcall_param.c b/host/src/fcall_param.c
index f3c699c846..e05b9254ca 100644
--- a/host/src/fcall_param.c
+++ b/host/src/fcall_param.c
@@ -18,12 +18,13 @@
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
#include "host/inc/fcall.h"
#ifndef UNIT_TEST
#include "lib/swap.h"
+#include "host/inc/syscall.h"
#else /* UNIT_TEST */
+#include <unistd.h>
#include <arpa/inet.h>
#endif /* UNIT_TEST */
diff --git a/host/src/netclock.c b/host/src/netclock.c
index 80bff5c523..23ed969725 100644
--- a/host/src/netclock.c
+++ b/host/src/netclock.c
@@ -18,12 +18,13 @@
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include <errno.h>
#include "host/inc/netclock.h"
#ifndef UNIT_TEST
#include "lib/swap.h"
+#include "host/inc/syscall.h"
#else /* UNIT_TEST */
+#include <unistd.h>
#include <arpa/inet.h>
#endif /* UNIT_TEST */
diff --git a/host/src/sci.c b/host/src/sci.c
index a0cc13d532..b16e300f08 100644
--- a/host/src/sci.c
+++ b/host/src/sci.c
@@ -17,13 +17,13 @@
*/
#include <string.h>
-#include <unistd.h>
#include <errno.h>
#include "host/inc/sci.h"
#ifndef UNIT_TEST
#include "host/inc/syscall.h"
#include "lib/swap.h"
#else /* UNIT_TEST */
+#include <unistd.h>
#include <arpa/inet.h>
#endif /* UNIT_TEST */
diff --git a/host/src/sci_msg.c b/host/src/sci_msg.c
index ae367c4c82..62abd80bc2 100644
--- a/host/src/sci_msg.c
+++ b/host/src/sci_msg.c
@@ -19,8 +19,12 @@
#include <errno.h>
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include "host/inc/sci.h"
+#ifndef UNIT_TEST
+#include "host/inc/syscall.h"
+#else /* UNIT_TEST */
+#include <unistd.h>
+#endif /* UNIT_TEST */
/**
* create a new sci message.
diff --git a/host/src/station.c b/host/src/station.c
index 9b38f40488..ed9a3b58c4 100644
--- a/host/src/station.c
+++ b/host/src/station.c
@@ -17,17 +17,18 @@
*/
#include <stdio.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include <string.h>
+#include <sys/types.h>
#include <errno.h>
#include "ecos/packages/hal/maximus/arch/current/include/hal_host_intr.h"
#include "host/inc/sci.h"
#include "host/inc/station.h"
#ifndef UNIT_TEST
#include "host/inc/syscall.h"
+#else
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/stat.h>
#endif
/* awfull, but needed */