[vlc-commits] configure: check Linux syscalls only on Linux

Rémi Denis-Courmont git at videolan.org
Thu Oct 18 17:42:38 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 18 18:34:48 2012 +0300| [f6baf564233fc7d812105a169611f3a3afbd28cb] | committer: Rémi Denis-Courmont

configure: check Linux syscalls only on Linux

They could work differently on other systems. Better safe than sorry.

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

 configure.ac |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d426b1a..2a9c92d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -531,7 +531,11 @@ AC_PREPROC_IFELSE([AC_LANG_SOURCE([
 AC_FUNC_STRCOLL
 
 dnl Check for non-standard system calls
-AC_CHECK_FUNCS([accept4 pipe2 eventfd vmsplice sched_getaffinity])
+case "$SYS" in
+  "linux")
+    AC_CHECK_FUNCS([accept4 pipe2 eventfd vmsplice sched_getaffinity])
+    ;;
+esac
 
 AH_BOTTOM([#include <vlc_fixups.h>])
 



More information about the vlc-commits mailing list