Skip to content

Commit 9eb7d83

Browse files
committed
_posixsubmodule.c would not build, it appears that a patch was added in the past to use sys/linux_syscalls.h. Now I believe that the NDK supports the standard sys/syscall.h which includes glibc-syscalls.h
1 parent 7643cfd commit 9eb7d83

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎mk/python/3.3.5/python-3.3.5-android-misc.patch‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,6 @@ diff -ru Python-3.3.5/Lib/test/test_subprocess.py Python-3.3.5-android/Lib/test/
124124
fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
125125
sys.executable)
126126
os.chmod(fname, 0o700)
127-
diff -ru Python-3.3.5/Modules/_posixsubprocess.c Python-3.3.5-android/Modules/_posixsubprocess.c
128-
--- Python-3.3.5/Modules/_posixsubprocess.c 2014-03-09 09:40:26.000000000 +0100
129-
+++ Python-3.3.5-android/Modules/_posixsubprocess.c 2014-08-04 22:19:36.000000000 +0200
130-
@@ -18,6 +18,12 @@
131-
#include <dirent.h>
132-
#endif
133-
134-
+#if defined(__ANDROID__)
135-
+/* Android doesn't expose syscalls. Let's add the definition manually. */
136-
+# include <sys/linux-syscalls.h>
137-
+# define SYS_getdents64 __NR_getdents64
138-
+#endif
139-
+
140-
#if defined(sun)
141-
/* readdir64 is used to work around Solaris 9 bug 6395699. */
142-
# define readdir readdir64
143127
diff -ru Python-3.3.5/Modules/pwdmodule.c Python-3.3.5-android/Modules/pwdmodule.c
144128
--- Python-3.3.5/Modules/pwdmodule.c 2014-03-09 09:40:28.000000000 +0100
145129
+++ Python-3.3.5-android/Modules/pwdmodule.c 2014-08-04 22:19:36.000000000 +0200

0 commit comments

Comments
 (0)