summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64/sysdep.h
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-05-05 08:45:16 +0000
committerAndreas Jaeger <aj@suse.de>2003-05-05 08:45:16 +0000
commit0fe8d5e6af87792e9cf7c03e682c332c7ec47335 (patch)
treed4779d44534aff6c484deca4b8dffab4ee71b3e5 /sysdeps/unix/sysv/linux/x86_64/sysdep.h
parentc6696b7957c62d89379d765c9a9008441ee7580c (diff)
(__NR_semtimedop): Define if not defined.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysdep.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
index 0edbe6624f..e88c48a9e4 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
@@ -46,6 +46,13 @@
# 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 220
+#endif
+
+
#ifdef __ASSEMBLER__
/* Linux uses a negative return value to indicate syscall errors,