Commit eeaa3b9e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove unprotected ARM-specific syscall

parent a597327a
......@@ -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).
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment