diff options
author | 2008-04-29 14:44:04 +0000 | |
---|---|---|
committer | 2008-04-29 14:44:04 +0000 | |
commit | 8958e66d81cfc52954118d45e93d10665e7130dd (patch) | |
tree | b354e41f71e66e2a2a56700fd6356086985fc480 | |
parent | Attempt to locate an ELF header and symbol table directly after the kernel. (diff) | |
download | wireguard-openbsd-8958e66d81cfc52954118d45e93d10665e7130dd.tar.xz wireguard-openbsd-8958e66d81cfc52954118d45e93d10665e7130dd.zip |
Make sure sys_signame and sys_siglist are wrapped in __BEGIN_DECLS.
Needed to tell pedantic C++ compilers these symbols have 'C' linkage.
ok kurt@
-rw-r--r-- | include/signal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/signal.h b/include/signal.h index 982933d8157..af3412f5ca9 100644 --- a/include/signal.h +++ b/include/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.11 2007/03/17 21:38:14 espie Exp $ */ +/* $OpenBSD: signal.h,v 1.12 2008/04/29 14:44:04 kettenis Exp $ */ /* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */ /*- @@ -42,12 +42,12 @@ #include <sys/types.h> #endif +__BEGIN_DECLS #if __BSD_VISIBLE extern __const char *__const sys_signame[_NSIG]; extern __const char *__const sys_siglist[_NSIG]; #endif -__BEGIN_DECLS int raise(int); #if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE void (*bsd_signal(int, void (*)(int)))(int); |