This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
- From: Matt Turner <mattst88 at gmail dot com>
- To: Richard Henderson <rth at twiddle dot net>, Michael Cree <mcree at orcon dot net dot nz>
- Cc: libc-ports at sourceware dot org, Matt Turner <mattst88 at gmail dot com>
- Date: Thu, 26 Apr 2012 22:41:06 -0400
- Subject: [PATCH] alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
---
ChangeLog.alpha | 5 +++++
sysdeps/unix/sysv/linux/alpha/kernel-features.h | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 08de3cf..d6116d1 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
2012-04-26 Matt Turner <mattst88@gmail.com>
+ * sysdeps/unix/sysv/linux/alpha/kernel-features.h: Correct kernel
+ version needed to define __ASSUME_ACCEPT4.
+
+2012-04-26 Matt Turner <mattst88@gmail.com>
+
* * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use "c"
and "e" in fopen.
diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
index 1f30c65..e532826 100644
--- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
@@ -1,6 +1,6 @@
/* Set flags signalling availability of kernel features based on given
kernel version number.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -63,8 +63,8 @@
# define __ASSUME_SIGNALFD4 1
#endif
-/* Support for accept4 was added for alpha after 2.6.33-rc1. */
-#if __LINUX_KERNEL_VERSION >= 0x020621
+/* Support for accept4 was added for alpha after 3.0. */
+#if __LINUX_KERNEL_VERSION >= 0x030100
# define __ASSUME_ACCEPT4 1
#endif
--
1.7.3.4