[vlc-commits] Remove unprotected ARM-specific syscall

Rémi Denis-Courmont git at videolan.org
Mon Sep 10 23:47:52 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 11 00:47:30 2012 +0300| [eeaa3b9ef3034627249d20236d982ab6d60a51da] | committer: Rémi Denis-Courmont

Remove unprotected ARM-specific syscall

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

 src/posix/filesystem.c |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index 4f57e3b..c5a8f88 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -279,20 +279,6 @@ int vlc_dup (int oldfd)
     return newfd;
 }
 
-#ifdef __ANDROID__ /* && we support android < 2.3 */
-/* pipe2() is declared and available since android-9 NDK,
- * although it is available in libc.a since android-3
- * We redefine the function here in order to be able to run
- * on versions of Android older than 2.3
- */
-#include <sys/syscall.h>
-//#include <sys/linux-syscalls.h> // fucking brokeness
-int pipe2(int fds[2], int flags)
-{
-    return syscall(/*__NR_pipe2 */ 359, fds, flags);
-}
-#endif /* __ANDROID__ */
-
 /**
  * Creates a pipe (see "man pipe" for further reference).
  */



More information about the vlc-commits mailing list