Fredrik Fornwall
67d2d61527
Remove <sys/sem.h>
System V semaphores doesn't work for non-root, it's better to
point at unnamed POSIX semaphores in <semaphore.h>
8 years ago
Fredrik Fornwall
f3e071d2f4
Wrap getpwuid_r (fixes psql history file location)
8 years ago
Vishal Biswas
7106823dfe
Fixes ( #819 )
* remove ndk_patches/sys-shm.h.patch
add a note about libandroid-shmem and posix semaphores
* libandroid-shmem: enable package
* separate function to replace autoconf guess scripts
8 years ago
Fredrik Fornwall
1197c15b83
Fix ifaddrs.h for real now
8 years ago
Fredrik Fornwall
59a1174c7d
ndk_patches: Mark functions as static in ifaddrs.h
8 years ago
Fredrik Fornwall
42562d13b8
ndk_patches: Add a ifaddrs.h polyfill ( fixes #338 )
8 years ago
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
8 years ago
Fredrik Fornwall
7f5da5d3af
ndk: Patch malloc.h to remove clang warnings
8 years ago
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 .
8 years ago
Vishal Biswas
6b87a6b879
fixed reverse patch ( #620 )
8 years ago
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
8 years ago
Fredrik Fornwall
4ba80ad5d4
ndk_patches: Better syslog -> logcat translation
Never log ANDROID_LOG_SILENT or ANDROID_LOG_FATAL.
8 years ago
Vishal Biswas
a5b4ca0cb7
Builder script and ndk patch improvements ( #520 )
- Add MOUNTED path.
- Add debug switch.
- Add switch for disabled package.
8 years ago
Fredrik Fornwall
5c36f4e054
ndk_patches: Use __inline__ for custom functions
This avoids warnings due to unused functions when building.
8 years ago
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.
9 years ago
Fredrik Fornwall
29948174e3
ndk: Add sys/ttydefault.h patch
9 years ago
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.
9 years ago
Fredrik Fornwall
f153ee9321
ndk_patches: Revert inline marker
Does not work for pre-c99 mode.
9 years ago
Fredrik Fornwall
14b3e28128
ndk_patches: Mark added functions as inline
This avoids warnings about unused functions.
9 years ago
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.
9 years ago
Michał Bednarski
30cd646434
Add missing argument to open(, O_CREAT) in tmpfile()
9 years ago
Fredrik Fornwall
03144f7804
ndk_patches/elf.h: Fix gdb build
9 years ago
Fredrik Fornwall
9462fe8257
ndk_patches: Take elf.h from the NDK
9 years ago
Fredrik Fornwall
46de1c2b41
ndk_patches: Remove sha1.h
9 years ago
Fredrik Fornwall
59ff7c032a
ndk_patches: Remove JNIHelp.h
9 years ago
Fredrik Fornwall
7f44723565
Silence compiler warnings for ctermid return value
9 years ago
Fredrik Fornwall
fcc35ab886
ndk_patches: ttyname(_r) works in Android 5.0+
9 years ago
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.
9 years ago
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.
9 years ago
Fredrik Fornwall
2c4c89b3bc
stdio.h: Use arc4random() instead of random()
9 years ago
Fredrik Fornwall
a4b036426c
ndk_patches: Patch stdio.h for a basic tmpfile(3)
9 years ago
Fredrik Fornwall
5e385c6adf
ndk_patches: Patch paths.h, _PATH_TMP used by tmux
9 years ago
Fredrik Fornwall
e802a5e7cc
Patch stdlib.h to have MB_CUR_MAX=4
We always want to use utf-8 so let's try this.
9 years ago
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.
9 years ago
Fredrik Fornwall
e8735a9e0a
ndk_patches: Replace endpwent() with empty stub
9 years ago
Fredrik Fornwall
c30d38226b
Initial stab at NDK r11 support
9 years ago
Fredrik Fornwall
f7690a8bbd
Update libtalloc and proot build files
9 years ago
Fredrik Fornwall
c501b8272d
Add back TERMUX_PREFIX in patch
9 years ago
Fredrik Fornwall
9867ff1aca
Include <string.h> in <stdio.h> for ctermid()
9 years ago
Francisco Demartino
93b884f130
ndk_patches/stdio.h.patch: add bogus ctermid()
9 years ago
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.
9 years ago
Fredrik Fornwall
394bbb6454
pwd.h patch: Add casting
10 years ago
Fredrik Fornwall
4b74af2c3b
busybox: Handle ash as symlink and re-enable wget
10 years ago
Fredrik Fornwall
f0d4e3805a
Patch a WIFCONTINUED definition to <sys/wait.h>
This fixes job control in bash and zsh
10 years ago
Fredrik Fornwall
6d5e9115d6
Minor cleanup of the pwd.h ndk patch
10 years ago
Fredrik Fornwall
341654304c
ndk_patches: Fix pwd.h patch to compile in more cases
10 years ago
Fredrik Fornwall
02b55df699
Use bash as login shell by default
10 years ago
Fredrik Fornwall
49c5b4d558
ndk_patches: Fix for mosh in <sys/select.h>
10 years ago
Fredrik Fornwall
b57fc0bbb3
ndk_patches: Update android_setup_pwd() to avoid allocating memory, and check that ~/.termux/shell points att executable
10 years ago
Fredrik Fornwall
49ca09e5e5
Fix wait3() function and bump build revisions
10 years ago