summaryrefslogtreecommitdiff
path: root/lib/libcurses/base/sigaction.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-06-27 08:16:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-06-27 08:16:03 +0000
commite0ad93e853d892132bbc9100f6e57a437528aae5 (patch)
tree624083c53414e0fda6fe6cf29ce84eae83d57ef0 /lib/libcurses/base/sigaction.c
parentc1da0c612ee213cbca9ce22e3e9ccc39fe62e5cc (diff)
ncurses-5.0-990626
Diffstat (limited to 'lib/libcurses/base/sigaction.c')
-rw-r--r--lib/libcurses/base/sigaction.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libcurses/base/sigaction.c b/lib/libcurses/base/sigaction.c
index b07ee1c333d..71ab97bbaf7 100644
--- a/lib/libcurses/base/sigaction.c
+++ b/lib/libcurses/base/sigaction.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigaction.c,v 1.2 1999/03/18 16:46:58 millert Exp $ */
+/* $OpenBSD: sigaction.c,v 1.3 1999/06/27 08:14:21 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -35,14 +35,15 @@
#include <curses.priv.h>
+#include <signal.h>
+#include <SigAction.h>
+
/* This file provides sigaction() emulation using sigvec() */
/* Use only if this is non POSIX system */
-#if !HAVE_SIGACTION
-#include <signal.h>
-#include <SigAction.h>
+#if !HAVE_SIGACTION && HAVE_SIGVEC
-MODULE_ID("$From: sigaction.c,v 1.8 1999/03/18 02:12:04 tom Exp $")
+MODULE_ID("$From: sigaction.c,v 1.9 1999/06/19 23:05:16 tom Exp $")
int
sigaction (int sig, sigaction_t * sigact, sigaction_t * osigact)
@@ -100,6 +101,7 @@ sigismember (sigset_t * mask, int sig)
{
return (*mask & sigmask (sig)) != 0;
}
+
#else
extern void _nc_sigaction(void); /* quiet's gcc warning */
void _nc_sigaction(void) { } /* nonempty for strict ANSI compilers */