summaryrefslogtreecommitdiff
path: root/libiberty/atexit.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-05-15 17:42:58 -0600
committerJeff Law <law@gcc.gnu.org>1998-05-15 17:42:58 -0600
commit3affd5f0f4b9f9e7d3ecac2881604692ae52681e (patch)
treee6ad5341787fa143c7cb10c7384c960aecfa1ede /libiberty/atexit.c
parentfe806bddb81ada7a8797cf387ff7c1427ed3d6bb (diff)
Update from Cygnus libiberty.
libiberty uses autoconf now. From-SVN: r19791
Diffstat (limited to 'libiberty/atexit.c')
-rw-r--r--libiberty/atexit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/atexit.c b/libiberty/atexit.c
index 4463cb69501..137d985e4cb 100644
--- a/libiberty/atexit.c
+++ b/libiberty/atexit.c
@@ -1,7 +1,10 @@
/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
/* This function is in the public domain. --Mike Stump. */
-#ifndef NEED_on_exit
+#include "config.h"
+
+#ifdef HAVE_ON_EXIT
+
int
atexit(f)
void (*f)();
@@ -11,4 +14,5 @@ atexit(f)
on_exit (f, 0);
return 0;
}
+
#endif