This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Update kernel-features.h for PPC
- To: libc-alpha at sources dot redhat dot com
- Subject: [PATCH] Update kernel-features.h for PPC
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Sun, 20 May 2001 13:23:09 +0200
Hi,
2.4.5-pre4 contains a complete sync of PPC into the official kernel. This
patch updates kernel-features.h to reflect this.
Franz.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STD_AUXV): Define
for linux >= 2.4.5 on powerpc.
(__ASSUME_MMAP2_SYSCALL): Likewise.
Index: sysdeps/unix/sysv/linux/kernel-features.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/kernel-features.h,v
retrieving revision 1.27
diff -u -p -r1.27 kernel-features.h
--- sysdeps/unix/sysv/linux/kernel-features.h 2001/04/29 14:19:13 1.27
+++ sysdeps/unix/sysv/linux/kernel-features.h 2001/05/17 15:41:56
@@ -171,9 +171,11 @@
# define __ASSUME_AT_PAGESIZE 1
#endif
-/* Starting with 2.4.? kernels PPC passes the AUXV in the standard way. */
-#if __LINUX_KERNEL_VERSION >= (132096+99) && defined __powerpc__
-# define __ASSUME_STD_AUXV 1
+/* Starting with 2.4.5 kernels PPC passes the AUXV in the standard way
+ and the mmap2 syscall made it into the official kernel. */
+#if __LINUX_KERNEL_VERSION >= (132096+5) && defined __powerpc__
+# define __ASSUME_STD_AUXV 1
+# define __ASSUME_MMAP2_SYSCALL 1
#endif
/* There are an infinite number of PA-RISC kernel versions numbered