]> git.sesse.net Git - vlc/commitdiff
Include 'sched.h' only if available
authorKO Myung-Hun <komh@chollian.net>
Sat, 12 Mar 2011 02:01:15 +0000 (11:01 +0900)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Oct 2011 15:59:26 +0000 (18:59 +0300)
Some systems such as OS/2 does not have 'sched.h'.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
bin/rootwrap.c

index 1527406e2d2d8faa050f16653fe217db0bcd214f..03598a94178d9be5e96e177370d1fcde6fa905c7 100644 (file)
@@ -34,7 +34,9 @@
 #include <sys/socket.h>
 #include <sys/uio.h>
 #include <sys/resource.h> /* getrlimit() */
+#ifdef RLIMIT_RTPRIO
 #include <sched.h>
+#endif
 #include <errno.h>
 #include <netinet/in.h>