--- a/sc2src/httpgate.cpp
+++ b/sc2src/httpgate.cpp
@@ -17,6 +17,7 @@
 #include "config.h"
 
 #include <string.h>
+#include <sched.h>
 #include <arpa/inet.h>
 #include <sys/types.h>
 #include <sys/select.h>