summary refs log tree commit diff
path: root/stdlib/old_atexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/old_atexit.c')
-rw-r--r--stdlib/old_atexit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdlib/old_atexit.c b/stdlib/old_atexit.c
new file mode 100644
index 0000000000..45f330bec8
--- /dev/null
+++ b/stdlib/old_atexit.c
@@ -0,0 +1,8 @@
+#include <shlib-compat.h>
+
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2_2)
+# define atexit __dyn_atexit
+# include "atexit.c"
+# undef atexit
+compat_symbol (libc, __dyn_atexit, atexit, GLIBC_2_0);
+#endif