/* POSIX compatible signal blocking.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software; you can redistribute it and/or modify
#include <config.h>
/* Specification. */
-#include "sigprocmask.h"
+#include <signal.h>
#include <errno.h>
#include <stdint.h>
received[sig] = 0;
for (sig = 0; sig < NSIG; sig++)
- if (received[NSIG])
+ if (received[sig])
{
#if HAVE_RAISE
raise (sig);