summaryrefslogtreecommitdiffstats
path: root/cmake/try_compile/ldwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/try_compile/ldwrap.c')
-rw-r--r--cmake/try_compile/ldwrap.c16
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;
+}