[vlc-commits] Include 'sched.h' only if available

KO Myung-Hun git at videolan.org
Tue Oct 11 17:59:31 CEST 2011


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Sat Mar 12 11:01:15 2011 +0900| [5d1975c448b18a2a2eab769a9b3593c3a2cf6c99] | committer: Rémi Denis-Courmont

Include 'sched.h' only if available

Some systems such as OS/2 does not have 'sched.h'.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d1975c448b18a2a2eab769a9b3593c3a2cf6c99
---

 bin/rootwrap.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/rootwrap.c b/bin/rootwrap.c
index 1527406..03598a9 100644
--- a/bin/rootwrap.c
+++ b/bin/rootwrap.c
@@ -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>
 



More information about the vlc-commits mailing list