]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.2.5/glibc-drow-sh.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.2.5 / glibc-drow-sh.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- glibc-2.2.5/sysdeps/unix/sysv/linux/kernel-features.h~glibc-drow-sh.patch   2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/sysdeps/unix/sysv/linux/kernel-features.h       2004-09-03 19:00:38.000000000 -0500
8 @@ -134,11 +134,20 @@
9  
10  /* The changed st_ino field appeared in 2.4.0-test6.  But we cannot
11     distinguish this version from other 2.4.0 releases.  Therefore play
12 -   save and assume it available is for 2.4.1 and up.  */
13 -#if __LINUX_KERNEL_VERSION >= 132097
14 +   save and assume it available is for 2.4.1 and up.  However, SH is lame,
15 +   and still does not have a 64-bit inode field.  */
16 +#if __LINUX_KERNEL_VERSION >= 132097 \
17 +    && !defined __sh__
18  # define __ASSUME_ST_INO_64_BIT                1
19  #endif
20  
21 +/* SH kernels got stat64, mmap2, and truncate64 during 2.4.0-test.  */
22 +#if __LINUX_KERNEL_VERSION >= 132096 && defined __sh__
23 +# define __ASSUME_TRUNCATE64_SYSCALL   1
24 +# define __ASSUME_MMAP2_SYSCALL                1
25 +# define __ASSUME_STAT64_SYSCALL       1
26 +#endif
27 +
28  /* To support locking of large files a new fcntl() syscall was introduced
29     in 2.4.0-test7.  We test for 2.4.1 for the earliest version we know
30     the syscall is available.  */