PATCH: Fix ia64 build

H. J. Lu hjl@lucon.org
Sat May 3 20:33:00 GMT 2003


On Sat, May 03, 2003 at 01:09:34PM -0700, Roland McGrath wrote:
> > +#ifndef __NR_semtimedop
> > +# define __NR_semtimedop 1247
> > +#endif
> 
> If this is the approach you are taking, you can do that in sysdep.h
> and then syscalls.list will work without needing to add the new source file.

Thanks. This works.


H.J.
-------------- next part --------------
2003-05-03  H.J. Lu <hongjiu.lu@intel.com>

	* sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
	if not defined.

--- sysdeps/unix/sysv/linux/ia64/sysdep.h.ia64	2003-03-24 12:42:08.000000000 -0800
+++ sysdeps/unix/sysv/linux/ia64/sysdep.h	2003-05-03 13:15:18.000000000 -0700
@@ -45,6 +45,12 @@
 # define __NR_pwrite __NR_pwrite64
 #endif
 
+/* This is to help the old kernel headers where __NR_semtimedop is not
+   available.  */
+#ifndef __NR_semtimedop
+# define __NR_semtimedop 1247
+#endif
+
 #ifdef __ASSEMBLER__
 
 #undef CALL_MCOUNT


More information about the Libc-alpha mailing list