This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Define ERFKILL for MIPS
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Tue, 17 Nov 2009 20:25:50 +0000 (UTC)
- Subject: Define ERFKILL for MIPS
I've applied this patch to add an ERFKILL definition for MIPS. alpha and
hppa will need similar fixes; if the new errno value is bigger than the
previous maximum, you'll also need to add errlist-compat entries to your
Versions file (I think the value on the #errlist-compat line should be at
least 1 more than the new largest errno value; the generic Linux version
is using a value 2 more, I suppose to allow room for future expansion).
diff --git a/ChangeLog.mips b/ChangeLog.mips
index b0d6337..0f17f52 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,8 @@
+2009-11-17 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/bits/errno.h (ERFKILL): Define if
+ not already defined.
+
2009-11-14 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN_EX,
diff --git a/sysdeps/unix/sysv/linux/mips/bits/errno.h b/sysdeps/unix/sysv/linux/mips/bits/errno.h
index 5ff11c0..62b952c 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/errno.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/errno.h
@@ -38,6 +38,10 @@
# define ENOTRECOVERABLE 166
# endif
+# ifndef ERFKILL
+# define ERFKILL 167
+# endif
+
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
--
Joseph S. Myers
joseph@codesourcery.com