diff options
Diffstat (limited to 'src/lib/libc/stdlib/atexit.h')
-rw-r--r-- | src/lib/libc/stdlib/atexit.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/atexit.h b/src/lib/libc/stdlib/atexit.h index 3de2aa3bf6..e2e821de04 100644 --- a/src/lib/libc/stdlib/atexit.h +++ b/src/lib/libc/stdlib/atexit.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: atexit.h,v 1.9 2014/06/18 19:01:10 kettenis Exp $ */ | 1 | /* $OpenBSD: atexit.h,v 1.10 2015/10/25 18:01:24 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2002 Daniel Hartmeier | 4 | * Copyright (c) 2002 Daniel Hartmeier |
@@ -41,7 +41,12 @@ struct atexit { | |||
41 | } fns[1]; /* the table itself */ | 41 | } fns[1]; /* the table itself */ |
42 | }; | 42 | }; |
43 | 43 | ||
44 | __BEGIN_HIDDEN_DECLS | ||
44 | extern struct atexit *__atexit; /* points to head of LIFO stack */ | 45 | extern struct atexit *__atexit; /* points to head of LIFO stack */ |
46 | __END_HIDDEN_DECLS | ||
45 | 47 | ||
46 | int __cxa_atexit(void (*)(void *), void *, void *); | 48 | int __cxa_atexit(void (*)(void *), void *, void *); |
47 | void __cxa_finalize(void *); | 49 | void __cxa_finalize(void *); |
50 | |||
51 | PROTO_NORMAL(__cxa_atexit); | ||
52 | PROTO_NORMAL(__cxa_finalize); | ||