This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Fix MIPS build (PI futexes)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Sun, 30 Jul 2006 21:01:15 +0000 (UTC)
- Subject: Fix MIPS build (PI futexes)
This patch fixes a glibc build problem on MIPS: NPTL now needs
definitions of FUTEX_LOCK_PI, FUTEX_UNLOCK_PI and FUTEX_TRYLOCK_PI.
Other ports may need similar fixes.
2006-07-30 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h (FUTEX_LOCK_PI,
FUTEX_UNLOCK_PI, FUTEX_TRYLOCK_PI): Define.
Index: sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h,v
retrieving revision 1.3
diff -u -r1.3 lowlevellock.h
--- sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h 3 Mar 2006 01:16:30 -0000 1.3
+++ sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h 30 Jul 2006 15:57:07 -0000
@@ -32,6 +32,9 @@
#define FUTEX_CMP_REQUEUE 4
#define FUTEX_WAKE_OP 5
#define FUTEX_OP_CLEAR_WAKE_IF_GT_ONE ((4 << 24) | 1)
+#define FUTEX_LOCK_PI 6
+#define FUTEX_UNLOCK_PI 7
+#define FUTEX_TRYLOCK_PI 8
/* Initializer for compatibility lock. */
#define LLL_MUTEX_LOCK_INITIALIZER (0)
--
Joseph S. Myers
joseph@codesourcery.com