Skip to content

Commit

Permalink
Remove unprotected ARM-specific syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Sep 10, 2012
1 parent a597327 commit eeaa3b9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/posix/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down

0 comments on commit eeaa3b9

Please sign in to comment.