summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-08-12 22:59:52 +0000
committerguenther <guenther@openbsd.org>2017-08-12 22:59:52 +0000
commit0f9363ecc691a809441608e3e9fb5a9b5e6ffe3a (patch)
tree35e9ec1672b915f36606735e2fdc1fac92106ffc /lib/libc/stdlib
parentIf the user running doas regress is not in the wobj group, switch (diff)
downloadwireguard-openbsd-0f9363ecc691a809441608e3e9fb5a9b5e6ffe3a.tar.xz
wireguard-openbsd-0f9363ecc691a809441608e3e9fb5a9b5e6ffe3a.zip
Minimize #includes, particularly to avoid thread_private.h
ok tedu@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/abort.c5
-rw-r--r--lib/libc/stdlib/exit.c5
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c
index 129a1735f3b..6c22ecd2b04 100644
--- a/lib/libc/stdlib/abort.c
+++ b/lib/libc/stdlib/abort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: abort.c,v 1.20 2015/10/25 04:13:59 guenther Exp $ */
+/* $OpenBSD: abort.c,v 1.21 2017/08/12 22:59:52 guenther Exp $ */
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved.
@@ -30,9 +30,8 @@
#include <signal.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
-#include "thread_private.h"
-#include "atexit.h"
void
diff --git a/lib/libc/stdlib/exit.c b/lib/libc/stdlib/exit.c
index d30b91ed46a..e93d4313e36 100644
--- a/lib/libc/stdlib/exit.c
+++ b/lib/libc/stdlib/exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exit.c,v 1.13 2015/09/13 08:31:47 guenther Exp $ */
+/* $OpenBSD: exit.c,v 1.14 2017/08/12 22:59:52 guenther Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -28,12 +28,9 @@
* SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/mman.h>
#include <stdlib.h>
#include <unistd.h>
#include "atexit.h"
-#include "thread_private.h"
/*
* This variable is zero until a process has created a thread.