Initial push
[termux-packages] / ndk_patches / user.h.patch
1 Needed for binutils on x86.
2
3 diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-x86/usr/include/sys/user.h ./usr/include/sys/user.h
4 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-x86/usr/include/sys/user.h 2014-12-01 19:05:05.000000000 -0500
5 +++ ./usr/include/sys/user.h 2014-12-23 10:31:31.343768553 -0500
6 @@ -99,6 +99,12 @@
7 int u_debugreg[8];
8 };
9
10 +/* http://osxr.org/android/source/bionic/libc/kernel/arch-x86/asm/user_32.h#0089 */
11 +#define NBPG PAGE_SIZE
12 +#define UPAGES 1
13 +#define HOST_TEXT_START_ADDR (u.start_code)
14 +#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
15 +
16 #elif defined(__x86_64__)
17
18 struct user_fpregs_struct {