* nsig.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* signal.c: Include "nsig.h" instead of <signal.h>, remove
NSIG workarounds.
* sigreturn.c: Likewise.
* syscall.c: Likewise.
* tests/pselect6.c: Likewise.
native_defs.h \
net.c \
netlink.c \
+ nsig.h \
numa.c \
oldstat.c \
open.c \
--- /dev/null
+#ifndef STRACE_NSIG_H
+#define STRACE_NSIG_H
+
+#include <signal.h>
+
+#ifndef NSIG
+# warning NSIG is not defined, using 32
+# define NSIG 32
+#elif NSIG < 32
+# error NSIG < 32
+#endif
+
+#endif /* !STRACE_NSIG_H */
*/
#include "defs.h"
-#include <signal.h>
-
-#ifndef NSIG
-# warning NSIG is not defined, using 32
-# define NSIG 32
-#elif NSIG < 32
-# error NSIG < 32
-#endif
+#include "nsig.h"
/* The libc headers do not define this constant since it should only be
used by the implementation. So we define it here. */
#include "defs.h"
-#include <signal.h>
+#include "nsig.h"
#include "regs.h"
#include "ptrace.h"
# include <asm/sigcontext.h>
#endif
-#ifndef NSIG
-# warning NSIG is not defined, using 32
-# define NSIG 32
-#elif NSIG < 32
-# error NSIG < 32
-#endif
-
#include "arch_sigreturn.c"
SYS_FUNC(sigreturn)
#include "defs.h"
#include "native_defs.h"
+#include "nsig.h"
#include <sys/param.h>
-#include <signal.h>
/* for struct iovec */
#include <sys/uio.h>
# define NT_PRSTATUS 1
#endif
-#ifndef NSIG
-# warning: NSIG is not defined, using 32
-# define NSIG 32
-#endif
-
#include "syscall.h"
/* Define these shorthand notations to simplify the syscallent files. */
*/
#include "tests.h"
+#include "nsig.h"
#include <assert.h>
#include <stdio.h>
-#include <signal.h>
#include <unistd.h>
#include <sys/select.h>
#include <asm/unistd.h>
#ifdef __NR_pselect6
-#ifndef NSIG
-# warning NSIG is not defined, using 32
-# define NSIG 32
-#endif
-
static fd_set set[3][0x1000000 / sizeof(fd_set)];
static void