From 6f7dc709ed7e403af224b0fbb91e9619629eb2ec Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 14 Jan 2006 19:45:02 +0000 Subject: make DODEBUG=y happy, update sysdeps/common/* copyright --- libc/signal/sigpause.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/signal/sigpause.c') diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c index e5dfc8e01..9f7fb0e76 100644 --- a/libc/signal/sigpause.c +++ b/libc/signal/sigpause.c @@ -17,6 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#define _BSD_SOURCE #include #include #include /* For NULL. */ @@ -29,6 +30,7 @@ libc_hidden_proto(sigsuspend) /* Set the mask of blocked signals to MASK, wait for a signal to arrive, and then restore the mask. */ +libc_hidden_proto(__sigpause) int __sigpause (int sig_or_mask, int is_sig) { sigset_t set; @@ -46,7 +48,6 @@ int __sigpause (int sig_or_mask, int is_sig) return sigsuspend (&set); } -libc_hidden_proto(__sigpause) libc_hidden_def(__sigpause) #undef sigpause @@ -54,9 +55,9 @@ libc_hidden_def(__sigpause) /* We have to provide a default version of this function since the standards demand it. The version which is a bit more reasonable is the BSD version. So make this the default. */ +libc_hidden_proto(sigpause) int sigpause (int mask) { return __sigpause (mask, 0); } -libc_hidden_proto(sigpause) libc_hidden_def(sigpause) -- cgit v1.2.3