diff --git a/src/comm.cpp b/src/comm.cpp
index 51c8dc83035b1bf0eaee39c972151db8de02f792..27fb269211f3394f43725f5af37fbc69e54a21d7 100644
--- a/src/comm.cpp
+++ b/src/comm.cpp
@@ -1,5 +1,4 @@
 #include <string.h>
-#include <unistd.h>
 #include <sys/select.h>
 #include <sys/ioctl.h>
 #include "comm.h"
diff --git a/src/comm.h b/src/comm.h
index 6346018d761aa04158d22ab54442909672e3a3cc..5a52adc5fa1e412242fdc814a767a82eb4e0b42f 100644
--- a/src/comm.h
+++ b/src/comm.h
@@ -1,6 +1,7 @@
 #ifndef _COMM_H
 #define _COMM_H
 
+#include <unistd.h>
 #include <list>
 #include "eventserver.h"
 #include "threadserver.h"