summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stack_protector.c
diff options
context:
space:
mode:
authordavid <david@openbsd.org>2003-07-18 23:05:13 +0000
committerdavid <david@openbsd.org>2003-07-18 23:05:13 +0000
commit26fda0efb9ec24d261dd2a0d7555cf97a82c0069 (patch)
tree25da477e473613aad2841d01d2c8afafcd65d61f /lib/libc/sys/stack_protector.c
parentcaddr_t -> void *. ok millert@ tdeval@ (diff)
downloadwireguard-openbsd-26fda0efb9ec24d261dd2a0d7555cf97a82c0069.tar.xz
wireguard-openbsd-26fda0efb9ec24d261dd2a0d7555cf97a82c0069.zip
add missing includes
ok tedu@
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index e954f76a71f..9f45343311c 100644
--- a/lib/libc/sys/stack_protector.c
+++ b/lib/libc/sys/stack_protector.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack_protector.c,v 1.4 2003/03/03 19:52:41 deraadt Exp $ */
+/* $OpenBSD: stack_protector.c,v 1.5 2003/07/18 23:05:13 david Exp $ */
/*
* Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat.
@@ -28,12 +28,15 @@
*/
#if defined(LIBC_SCCS) && !defined(list)
-static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.4 2003/03/03 19:52:41 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.5 2003/07/18 23:05:13 david Exp $";
#endif
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <signal.h>
+#include <string.h>
#include <syslog.h>
+#include <unistd.h>
long __guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
static void __guard_setup(void) __attribute__ ((constructor));