diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2024-05-21 03:12:18 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2024-05-21 03:12:18 +0200 |
commit | 2f4c1de6c3fa23e073b81b9dd9fd9869037612db (patch) | |
tree | cc4d193728596bdd17367782fb8bccc686f2de5f /cmake/try_compile | |
parent | b54b8f5b25403cf3b9623804b2491ec78a8b913e (diff) | |
download | blogc-2f4c1de6c3fa23e073b81b9dd9fd9869037612db.tar.gz blogc-2f4c1de6c3fa23e073b81b9dd9fd9869037612db.tar.bz2 blogc-2f4c1de6c3fa23e073b81b9dd9fd9869037612db.zip |
build: tests: support cmake < 3.25
Diffstat (limited to 'cmake/try_compile')
-rw-r--r-- | cmake/try_compile/ldwrap.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 <stdlib.h> + +void __real_exit(int status); + +void +__wrap_exit(int s) +{ + __real_exit(0); +} + +int +main() +{ + exit(1); + return 0; +} |