Commit Graph

50 Commits

Author SHA1 Message Date
Fredrik Fornwall 1197c15b83 Fix ifaddrs.h for real now 2017-02-21 10:11:52 +01:00
Fredrik Fornwall 59a1174c7d ndk_patches: Mark functions as static in ifaddrs.h 2017-02-20 21:44:13 +01:00
Fredrik Fornwall 42562d13b8 ndk_patches: Add a ifaddrs.h polyfill (fixes #338) 2017-02-17 22:33:57 +01:00
Vishal Biswas c4804ab87a ndk_patches: add patches for sem and shm (#691)
* ndk_patches: add patches for sem and shm

* add #ifdef around syscall stubs for shm.h and sem.h
2017-01-24 10:41:46 +01:00
Fredrik Fornwall 7f5da5d3af ndk: Patch malloc.h to remove clang warnings 2017-01-19 02:49:43 +01:00
Fredrik Fornwall 627fdeb162 ndk_patches: Define _POSIX2_VERSION to 200809
coreutils looks at _POSIX2_VERSION and enables broken obsolete
behaviour if not set.

Fixes https://github.com/termux/termux-app/issues/232.
2017-01-07 01:45:46 -05:00
Vishal Biswas 6b87a6b879 fixed reverse patch (#620) 2016-12-25 18:10:22 +01:00
Vishal Biswas 2efab69bbf new ndk patches (#576)
map S_I* to S_I*USR counterparts
add dummy syscall.h to redirect to sys/syscall.h
2016-12-21 03:51:06 +01:00
Fredrik Fornwall 4ba80ad5d4 ndk_patches: Better syslog -> logcat translation
Never log ANDROID_LOG_SILENT or ANDROID_LOG_FATAL.
2016-12-03 19:46:39 -05:00
Vishal Biswas a5b4ca0cb7 Builder script and ndk patch improvements (#520)
- Add MOUNTED path.
- Add debug switch.
- Add switch for disabled package.
2016-10-23 14:57:41 +02:00
Fredrik Fornwall 5c36f4e054 ndk_patches: Use __inline__ for custom functions
This avoids warnings due to unused functions when building.
2016-09-22 14:43:21 -04:00
lorint b570eef098 Add fd_mask for Rails 5 support (#366)
Add fd_mask typedef to <sys/select>

Native code compiled when installing the Ruby gem nio4r (used by Rails 5) needs fd_mask.
2016-07-24 13:26:13 +02:00
Fredrik Fornwall 29948174e3 ndk: Add sys/ttydefault.h patch 2016-07-04 18:43:53 -04:00
Fredrik Fornwall c3c36e92a5 ndk_patches: Patch _PATH_BSHELL in paths.h
Using /system/bin/sh does not work in all cases due to
LD_LIBRARY_PATH, so patch paths.h to define _PATH_BSHELL to our own
shell $PREFIX/bin/sh.
2016-05-30 18:03:53 -04:00
Fredrik Fornwall f153ee9321 ndk_patches: Revert inline marker
Does not work for pre-c99 mode.
2016-05-25 16:24:43 -04:00
Fredrik Fornwall 14b3e28128 ndk_patches: Mark added functions as inline
This avoids warnings about unused functions.
2016-05-25 16:18:19 -04:00
Fredrik Fornwall 0475ed5665 ndk_patches: Include correct fcntl.h in stdio.h
Include <asm/fcntl.h> and not <asm-generic/fcntl.h>. The first one
has arch-specific values before including the second one, which
checks with #ifdef before defining generic values.
2016-05-18 00:43:18 -04:00
Michał Bednarski 30cd646434 Add missing argument to open(, O_CREAT) in tmpfile() 2016-05-12 19:34:23 +02:00
Fredrik Fornwall 03144f7804 ndk_patches/elf.h: Fix gdb build 2016-05-08 19:02:21 -04:00
Fredrik Fornwall 9462fe8257 ndk_patches: Take elf.h from the NDK 2016-05-08 16:26:15 -04:00
Fredrik Fornwall 46de1c2b41 ndk_patches: Remove sha1.h 2016-05-08 16:08:51 -04:00
Fredrik Fornwall 59ff7c032a ndk_patches: Remove JNIHelp.h 2016-05-08 16:04:56 -04:00
Fredrik Fornwall 7f44723565 Silence compiler warnings for ctermid return value 2016-04-29 02:39:29 +02:00
Fredrik Fornwall fcc35ab886 ndk_patches: ttyname(_r) works in Android 5.0+ 2016-04-20 15:06:53 -04:00
Fredrik Fornwall 51c63287f7 ndk_patches: <dlfcn.h> now #define:s RTLD_*
The Android NDK headers define the RTLD_* values within an enum,
which causes problems with #ifdef checks. Patch these to instead
use #define which is more traditional and what much code expects.
2016-04-18 00:33:02 -04:00
Fredrik Fornwall b29ec8d981 stdio.h: Avoid pulling in complete fcntl.h
This pollutes the namespace and breaks building e.g. python, which
defines a tee() function.
2016-04-11 09:15:57 -04:00
Fredrik Fornwall 2c4c89b3bc stdio.h: Use arc4random() instead of random() 2016-04-11 07:22:10 -04:00
Fredrik Fornwall a4b036426c ndk_patches: Patch stdio.h for a basic tmpfile(3) 2016-04-11 07:11:39 -04:00
Fredrik Fornwall 5e385c6adf ndk_patches: Patch paths.h, _PATH_TMP used by tmux 2016-04-11 06:16:15 -04:00
Fredrik Fornwall e802a5e7cc Patch stdlib.h to have MB_CUR_MAX=4
We always want to use utf-8 so let's try this.
2016-03-22 16:58:15 -04:00
Fredrik Fornwall cb9e3a9ac9 Set pw_gecos to "" on 64-bit
The pw_getcos field on struct passwd is defined on 64-bit builds
but is NULL which programs does not handle (at least no openssh
which crashes). Initialize this field to "" to avoid this.
2016-03-12 15:40:05 -05:00
Fredrik Fornwall e8735a9e0a ndk_patches: Replace endpwent() with empty stub 2016-03-10 15:24:52 -05:00
Fredrik Fornwall c30d38226b Initial stab at NDK r11 support 2016-03-10 12:01:58 +01:00
Fredrik Fornwall f7690a8bbd Update libtalloc and proot build files 2016-01-08 20:19:06 -05:00
Fredrik Fornwall c501b8272d Add back TERMUX_PREFIX in patch 2015-12-24 03:21:22 -05:00
Fredrik Fornwall 9867ff1aca Include <string.h> in <stdio.h> for ctermid() 2015-12-24 03:20:05 -05:00
Francisco Demartino 93b884f130 ndk_patches/stdio.h.patch: add bogus ctermid() 2015-12-24 04:13:53 -03:00
Fredrik Fornwall 629f805ba1 Patch NDK to define AT_EACCESS to 0
This fixes breakage for gnulib-using packages which otherwise
defines AT_EACCESS, which does not work on Android 6.

Bump build revisions for coreutils and emacs to rebuild them
with this patch.
2015-10-19 17:51:13 -04:00
Fredrik Fornwall 394bbb6454 pwd.h patch: Add casting 2015-08-12 01:29:50 -04:00
Fredrik Fornwall 4b74af2c3b busybox: Handle ash as symlink and re-enable wget 2015-08-11 21:09:58 -04:00
Fredrik Fornwall f0d4e3805a Patch a WIFCONTINUED definition to <sys/wait.h>
This fixes job control in bash and zsh
2015-08-06 19:25:41 -04:00
Fredrik Fornwall 6d5e9115d6 Minor cleanup of the pwd.h ndk patch 2015-08-03 20:32:49 -04:00
Fredrik Fornwall 341654304c ndk_patches: Fix pwd.h patch to compile in more cases 2015-07-30 21:20:15 -04:00
Fredrik Fornwall 02b55df699 Use bash as login shell by default 2015-07-30 19:47:00 -04:00
Fredrik Fornwall 49c5b4d558 ndk_patches: Fix for mosh in <sys/select.h> 2015-07-25 18:20:06 -04:00
Fredrik Fornwall b57fc0bbb3 ndk_patches: Update android_setup_pwd() to avoid allocating memory, and check that ~/.termux/shell points att executable 2015-07-15 13:12:28 -04:00
Fredrik Fornwall 49ca09e5e5 Fix wait3() function and bump build revisions 2015-07-11 17:43:48 -04:00
Fredrik Fornwall e7fcdfa2bb Remove broken WIFCONTINUED macro
Bump build revision on affected packages.
2015-07-11 17:16:59 -04:00
Fredrik Fornwall 8f7dda8321 Work against 64-bit builds 2015-06-25 06:36:03 -04:00
Fredrik Fornwall 59f0d218a6 Initial push 2015-06-13 01:03:31 +02:00