]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- Define atexit for old Solaris
authorDamien Miller <djm@mindrot.org>
Tue, 30 May 2000 02:57:46 +0000 (12:57 +1000)
committerDamien Miller <djm@mindrot.org>
Tue, 30 May 2000 02:57:46 +0000 (12:57 +1000)
ChangeLog
configure.in
defines.h

index 02c477133eba729b55fd1209cb90baa0509609e6..a79bb19c90966fceb0e7fdd2048c6cdcf660ad0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20000530
+ - Define atexit for old Solaris
+
 20000520
  - Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
  - Don't touch utmp if USE_UTMPX defined
index a8b9794fd47075e0056fc77efaf995c1f1c8e2f0..3c6694dbaed2cb4ba97340b03a78074a490e91bd 100644 (file)
@@ -135,7 +135,7 @@ fi
 AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h)
 
 # Checks for library functions.
-AC_CHECK_FUNCS(arc4random b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty __b64_ntop)
+AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty __b64_ntop)
 
 AC_CHECK_FUNC(login, 
        [AC_DEFINE(HAVE_LOGIN)],
index 5eddf2e10a09a89a792045e04624d3895c7fe82f..ef91309824a6af917e307e24dce8ff573c306a51 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -293,4 +293,8 @@ typedef int ssize_t;
 # define memmove(s1, s2, n) bcopy((s2), (s1), (n))
 #endif /* !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) */
 
+#if !defined(HAVE_ATEXIT) && defined(HAVE_ON_EXIT)
+# define atexit(a) on_exit(a)
+#endif /* !defined(HAVE_ATEXIT) && defined(HAVE_ON_EXIT) */
+
 #endif /* _DEFINES_H */