diff --git a/src/login.c b/src/login.c
index 3190233..b2324d1 100644
--- a/src/login.c
+++ b/src/login.c
@@ -15,6 +15,8 @@
  */
 
 #include <string.h>
+#include <arpa/inet.h>
+#include <sys/types.h>
 
 #include "md5.h"