summaryrefslogtreecommitdiffstats
path: root/polyp/util.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 22:42:26 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 22:42:26 +0000
commitbdc02f71f505b6a7b6874a7b3f6beff31355bb7c (patch)
treebd3d2c03dbd3ac92cba79e98f241e424f854d14d /polyp/util.c
parent67833c2bcf1019f48df2cbabd654c67a6d4b7fef (diff)
Protect sys/resource.h with an ifdef.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@416 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/util.c')
-rw-r--r--polyp/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/util.c b/polyp/util.c
index a05e601d..cccb6651 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -37,7 +37,6 @@
#include <signal.h>
#include <pthread.h>
#include <sys/time.h>
-#include <sys/resource.h>
#include <limits.h>
#include <unistd.h>
@@ -45,6 +44,10 @@
#include <sched.h>
#endif
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif