diff --git a/daemon/workit.cpp.old b/daemon/workit.cpp
index 286af5c..be555bd 100644
--- a/daemon/workit.cpp
+++ b/daemon/workit.cpp
@@ -43,9 +43,9 @@
 #endif
 #include <sys/socket.h>
 
+#include <sys/resource.h>
 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__APPLE__)
 #include <signal.h>
-#include <sys/resource.h>
 #ifndef RUSAGE_SELF
 #define   RUSAGE_SELF     (0)
 #endif
