diff options
| author | miod <> | 2024-03-05 19:27:47 +0000 |
|---|---|---|
| committer | miod <> | 2024-03-05 19:27:47 +0000 |
| commit | 6c38330a63feffc2d64b670ac467a02f31a736f9 (patch) | |
| tree | 200ce09898af28e2c41d22511a46d02b1d6287c4 /src | |
| parent | 45dca709040c35c7a9a61acbdbe692fca0fb7af9 (diff) | |
| download | openbsd-6c38330a63feffc2d64b670ac467a02f31a736f9.tar.gz openbsd-6c38330a63feffc2d64b670ac467a02f31a736f9.tar.bz2 openbsd-6c38330a63feffc2d64b670ac467a02f31a736f9.zip | |
Ugly workaround to let this compile again on non-clang platforms.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libc/atexit/atexit_test.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/regress/lib/libc/atexit/atexit_test.c b/src/regress/lib/libc/atexit/atexit_test.c index b060a9b341..f00a81a6c9 100644 --- a/src/regress/lib/libc/atexit/atexit_test.c +++ b/src/regress/lib/libc/atexit/atexit_test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: atexit_test.c,v 1.9 2017/07/27 15:08:37 bluhm Exp $ */ | 1 | /* $OpenBSD: atexit_test.c,v 1.10 2024/03/05 19:27:47 miod Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2002 Daniel Hartmeier | 4 | * Copyright (c) 2002 Daniel Hartmeier |
| @@ -40,6 +40,14 @@ | |||
| 40 | #include <signal.h> | 40 | #include <signal.h> |
| 41 | #include <unistd.h> | 41 | #include <unistd.h> |
| 42 | 42 | ||
| 43 | /* | ||
| 44 | * XXX Provide a prototype for aligned_alloc on pre-C11 compilers to prevent | ||
| 45 | * inclusion of hidden/stdlib.h below to cause a missing prototype error. | ||
| 46 | */ | ||
| 47 | #if (__ISO_C_VISIBLE - 0) < 2011 | ||
| 48 | void *aligned_alloc(size_t, size_t); | ||
| 49 | #endif | ||
| 50 | |||
| 43 | #include "include/namespace.h" | 51 | #include "include/namespace.h" |
| 44 | #include "hidden/stdlib.h" | 52 | #include "hidden/stdlib.h" |
| 45 | #include "stdlib/atexit.h" | 53 | #include "stdlib/atexit.h" |
