From 56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6 Mon Sep 17 00:00:00 2001 From: stefanf Date: Mon, 12 Sep 2005 13:46:32 +0000 Subject: Move the declaration of __cleanup to libc_private.h as it is used in both stdio/ and stdlib/. Don't define __cleanup twice. --- lib/libc/stdlib/exit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdlib/exit.c') diff --git a/lib/libc/stdlib/exit.c b/lib/libc/stdlib/exit.c index 83abdbd..cafb127 100644 --- a/lib/libc/stdlib/exit.c +++ b/lib/libc/stdlib/exit.c @@ -41,9 +41,11 @@ __FBSDID("$FreeBSD$"); #include #include #include "un-namespace.h" + #include "atexit.h" +#include "libc_private.h" -void (*__cleanup)(); +void (*__cleanup)(void); /* * This variable is zero until a process has created a thread. -- cgit v1.1