summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stack_protector.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-03-13 18:34:20 +0000
committerguenther <guenther@openbsd.org>2016-03-13 18:34:20 +0000
commite422429247bd689ad82a15ebdacdfc785b980b1d (patch)
treee55007aaec3fc67c3671cede86e113d93041c114 /lib/libc/sys/stack_protector.c
parentremove an extra space before ^\ help message. (diff)
downloadwireguard-openbsd-e422429247bd689ad82a15ebdacdfc785b980b1d.tar.xz
wireguard-openbsd-e422429247bd689ad82a15ebdacdfc785b980b1d.zip
environ and __progname are not declared in a public header; declare them
in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index abaf7b56034..b1b07c2beda 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.21 2015/12/01 17:05:25 canacar Exp $ */
+/* $OpenBSD: stack_protector.c,v 1.22 2016/03/13 18:34:21 guenther Exp $ */
/*
* Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat.
@@ -28,6 +28,7 @@
*/
#include <signal.h>
+#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
@@ -49,7 +50,6 @@ long __guard_local __dso_hidden __attribute__((section(".openbsd.randomdata")));
void
__stack_smash_handler(const char func[], int damaged)
{
- extern char *__progname;
struct sigaction sa;
sigset_t mask;
char buf[1024];