From: George Koehler Date: Wed, 30 Nov 2016 19:33:40 +0000 (-0500) Subject: Declare raise() for Mac OS X. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=543bbcb9ab02a9195271c524733f24621ee37bf3;p=ack.git Declare raise() for Mac OS X. This prevents the warning, "implicit declaration of function raise", in programs that call raise(). I forgot to declare it because the function raise() is in libc but the declaration goes in libsys. --- diff --git a/plat/osx/include/unistd.h b/plat/osx/include/unistd.h index 320db4a86..bafa2a6c4 100644 --- a/plat/osx/include/unistd.h +++ b/plat/osx/include/unistd.h @@ -120,6 +120,8 @@ int kill(pid_t, int); int sigaction(int, const struct sigaction *, struct sigaction *); sig_t signal(int, sig_t); +int raise(int); /* in libc */ + /* XXX - end signal.h */ void _exit(int);