From 2f4c1de6c3fa23e073b81b9dd9fd9869037612db Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 21 May 2024 03:12:18 +0200 Subject: build: tests: support cmake < 3.25 --- cmake/try_compile/ldwrap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cmake/try_compile/ldwrap.c (limited to 'cmake/try_compile/ldwrap.c') diff --git a/cmake/try_compile/ldwrap.c b/cmake/try_compile/ldwrap.c new file mode 100644 index 0000000..cc200e8 --- /dev/null +++ b/cmake/try_compile/ldwrap.c @@ -0,0 +1,16 @@ +#include + +void __real_exit(int status); + +void +__wrap_exit(int s) +{ + __real_exit(0); +} + +int +main() +{ + exit(1); + return 0; +} -- cgit v1.2.3-18-g5258