Robert Shearman : ntdll: Add a define for SYS_sigaction to
__NR_sigaction.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 20 14:18:22 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 3e47c82e025afcb868ac547a5bd4050fc43a5e52
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3e47c82e025afcb868ac547a5bd4050fc43a5e52
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon Feb 20 13:29:31 2006 +0000
ntdll: Add a define for SYS_sigaction to __NR_sigaction.
Print an error if __NR_sigaction doesn't exist as this means the wrong
syscall header is being used.
---
dlls/ntdll/signal_i386.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 46f9fa6..bfc9c45 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -103,6 +103,13 @@ struct kernel_sigaction
void *ksa_restorer;
};
+#ifndef SYS_sigaction
+# ifndef __NR_sigaction
+# error The sigaction syscall is part of the Linux i386 ABI, but your headers don't define it. Please raise a bug with your distribution.
+# endif
+# define SYS_sigaction __NR_sigaction
+#endif
+
/* Similar to the sigaction function in libc, except it leaves alone the
restorer field, which is used to specify the signal stack address */
static inline int wine_sigaction( int sig, struct kernel_sigaction *new,
More information about the wine-cvs
mailing list