Message ID | ec3028b0-d761-4f6a-abd4-5c2ca0a6caf0@BAMAIL02.ba.imgtec.org |
---|---|
State | New |
Headers | show |
On Fri, Nov 21, 2014 at 02:30:06PM -0800, Steve Ellcey wrote: > 2014-11-21 Steve Ellcey <sellcey@imgtec.com> > > * config/linux/mips/futex.h (SYS_futex): Define if not already done. Ok. > --- a/libgomp/config/linux/mips/futex.h > +++ b/libgomp/config/linux/mips/futex.h > @@ -25,6 +25,11 @@ > /* Provide target-specific access to the futex system call. */ > > #include <sys/syscall.h> > + > +#if !defined(SYS_futex) > +#define SYS_futex __NR_futex > +#endif > + > #define FUTEX_WAIT 0 > #define FUTEX_WAKE 1 > Jakub
diff --git a/libgomp/config/linux/mips/futex.h b/libgomp/config/linux/mips/futex.h index ae32b80..641308c 100644 --- a/libgomp/config/linux/mips/futex.h +++ b/libgomp/config/linux/mips/futex.h @@ -25,6 +25,11 @@ /* Provide target-specific access to the futex system call. */ #include <sys/syscall.h> + +#if !defined(SYS_futex) +#define SYS_futex __NR_futex +#endif + #define FUTEX_WAIT 0 #define FUTEX_WAKE 1