chiark / gitweb /
python: Build a working crypt module (closes #230)
[termux-packages] / packages / python / posixmodule.c.patch
1 diff -u -r ../Python-3.4.1/Modules/posixmodule.c ./Modules/posixmodule.c
2 --- ../Python-3.4.1/Modules/posixmodule.c       2014-05-19 07:19:39.000000000 +0200
3 +++ ./Modules/posixmodule.c     2014-06-25 21:42:11.191524129 +0200
4 @@ -6048,7 +6048,7 @@
5      if (_Py_set_inheritable(master_fd, 0, NULL) < 0)
6          goto posix_error;
7  
8 -#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC)
9 +#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC) && !defined(__ANDROID__)
10      ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
11      ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
12  #ifndef __hpux