summaryrefslogtreecommitdiff
path: root/libiberty/atexit.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-15 23:42:58 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-15 23:42:58 +0000
commit3c67ba63fe49eb98772c621befa986b0e8ec6bbc (patch)
treee6ad5341787fa143c7cb10c7384c960aecfa1ede /libiberty/atexit.c
parentc86d77718da96c49f4ebb62ced265932245cbd3a (diff)
downloadgcc-3c67ba63fe49eb98772c621befa986b0e8ec6bbc.tar.gz
Update from Cygnus libiberty.
libiberty uses autoconf now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19791 138bc75d-0d04-0410-961f-82ee72b054a4
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