summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libc/atexit/atexit_test.c10
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
48void *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"