aboutsummaryrefslogtreecommitdiff
path: root/libiberty/atexit.c
diff options
context:
space:
mode:
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