diff --git a/asterisk.c b/asterisk.c
index f7d9b56258d312818598606828179ff2a77e01cb..acf5849aa3f864447b14eae953c9189377b7b241 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -13,7 +13,7 @@
 
 #include <unistd.h>
 #include <stdlib.h>
-#include <sys/resource.h>
+#include <sys/time.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <signal.h>
diff --git a/translate.c b/translate.c
index 492ebb8e132ac8643b190cf7800e36f3b05f1fd6..890e04222089f259487118a53a882d2016e176ba 100755
--- a/translate.c
+++ b/translate.c
@@ -11,6 +11,7 @@
  * the GNU General Public License
  */
 
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <unistd.h>