atexit compatibility code.
authordrepper <drepper>
Mon, 26 Feb 2001 17:46:27 +0000 (17:46 +0000)
committerdrepper <drepper>
Mon, 26 Feb 2001 17:46:27 +0000 (17:46 +0000)
stdlib/old_atexit.c [new file with mode: 0644]

diff --git a/stdlib/old_atexit.c b/stdlib/old_atexit.c
new file mode 100644 (file)
index 0000000..45f330b
--- /dev/null
@@ -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