Move sysresource.h include
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 7 Apr 2014 17:02:35 +0000 (18:02 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 7 Apr 2014 17:02:54 +0000 (18:02 +0100)
src/lib/debug.c
src/main/mainconfig.c

index 7bccccd..7d31ac0 100644 (file)
 #  include <sys/prctl.h>
 #endif
 
+#ifdef HAVE_SYS_RESOURCE_H
+#  include <sys/resource.h>
+#endif
+
 #ifdef HAVE_PTHREAD_H
 #  define PTHREAD_MUTEX_LOCK pthread_mutex_lock
 #  define PTHREAD_MUTEX_UNLOCK pthread_mutex_unlock
index 90e7553..ec2245d 100644 (file)
@@ -29,10 +29,6 @@ RCSID("$Id$")
 
 #include <sys/stat.h>
 
-#ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#endif
-
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif