summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 04:45:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 04:48:25 +0200
commit6662ce280f002881e07d4ac5bc1a8fd5786a304c (patch)
tree81a94e5f618c88d329e4fe1f475ac84094c6e4ed
parent78e1baac0654aad82b855f8ded90c1f35c81a552 (diff)
downloadfastd-6662ce280f002881e07d4ac5bc1a8fd5786a304c.tar
fastd-6662ce280f002881e07d4ac5bc1a8fd5786a304c.zip
Move some includes to compat.h
-rw-r--r--src/compat.h6
-rw-r--r--src/fastd.h6
-rw-r--r--src/types.h1
3 files changed, 6 insertions, 7 deletions
diff --git a/src/compat.h b/src/compat.h
index 5a24a97..16bf9d5 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -32,6 +32,12 @@
#include <stdint.h>
#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#ifndef ETH_ALEN
#define ETH_ALEN 6
diff --git a/src/fastd.h b/src/fastd.h
index 5399e90..b346bf0 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -35,18 +35,12 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <time.h>
-#include <unistd.h>
#include <sys/uio.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-#include <netinet/if_ether.h>
/* This must be adjusted when new methods are added */
#define MAX_METHODS 3
diff --git a/src/types.h b/src/types.h
index 856d321..b1026b5 100644
--- a/src/types.h
+++ b/src/types.h
@@ -37,7 +37,6 @@
#include <version.h>
#include <stdbool.h>
-#include <sys/types.h>
typedef struct fastd_tristate {