diff --git a/master/datagram.h b/master/datagram.h
index 8d2f89208d44d7b1077639f1093b416b5bcb2556..9b5c4bbbef326c968d85c88756eaae1bc242b3b2 100644
--- a/master/datagram.h
+++ b/master/datagram.h
@@ -42,6 +42,7 @@
 #define _EC_DATAGRAM_H_
 
 #include <linux/list.h>
+#include <linux/time.h>
 #include <linux/timex.h>
 
 #include "globals.h"
diff --git a/master/debug.c b/master/debug.c
index 3ade15ef8e27f1d453a452ac83636060e363ae9c..01e8f6372a3660876c8824272885b224d4305591 100644
--- a/master/debug.c
+++ b/master/debug.c
@@ -38,6 +38,7 @@
 
 /*****************************************************************************/
 
+#include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 
 #include "globals.h"
diff --git a/master/domain.c b/master/domain.c
index cc7869da0586a765135592ad0e1cc7c667d1ede1..ebda3f9f02116bf47730936ae31072198d72341d 100644
--- a/master/domain.c
+++ b/master/domain.c
@@ -38,6 +38,8 @@
 
 /*****************************************************************************/
 
+#include <linux/module.h>
+
 #include "globals.h"
 #include "domain.h"
 #include "master.h"
diff --git a/master/ethernet.c b/master/ethernet.c
index f1cebbfe40d6a074a2c053385bdbf891fa171aa9..0fcd0fac5388cba15c1f3dd6817b6180d91bbcbe 100644
--- a/master/ethernet.c
+++ b/master/ethernet.c
@@ -38,6 +38,7 @@
 
 /*****************************************************************************/
 
+#include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 
 #include "../include/ecrt.h"