- Irix portability fixes - don't include netinet headers more than once
- Make sure we don't save PRNG seed more than once
diff --git a/ChangeLog b/ChangeLog
index de8490a..6f54e44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,8 @@
<gd@hilb1.medat.de>
- Add some missing ifdefs to auth2.c
- Deprecate perl-tk askpass.
+ - Irix portability fixes - don't include netinet headers more than once
+ - Make sure we don't save PRNG seed more than once
20000430
- Merge HP-UX fixes and TCB support from Ged Lodder <lodder@yacc.com.au>
diff --git a/configure.in b/configure.in
index 2e50df9..8046fa3 100644
--- a/configure.in
+++ b/configure.in
@@ -43,7 +43,6 @@
LDFLAGS="$LDFLAGS -L/usr/local/lib"
AC_DEFINE(IPADDR_IN_DISPLAY)
AC_DEFINE(USE_UTMPX)
- AC_DEFINE(NEED_IN_SYSTM_H)
AC_MSG_CHECKING(for HPUX trusted system password database)
if test -f /tcb/files/auth/system/default; then
AC_MSG_RESULT(yes)
@@ -130,7 +129,7 @@
fi
# Checks for header files.
-AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.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)
+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 bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty)
diff --git a/defines.h b/defines.h
index b1e28ca..9490e77 100644
--- a/defines.h
+++ b/defines.h
@@ -7,11 +7,8 @@
#include <sys/socket.h> /* For SHUT_XXXX */
+# include <netinet/in_systm.h> /* For typedefs */
#include <netinet/in.h> /* For IPv6 macros */
-
-#ifdef NEED_IN_SYSTM_H
-# include <netinet/in_systm.h>
-#endif
#include <netinet/ip.h> /* For IPTOS macros */
#ifdef HAVE_SYS_BITYPES_H
diff --git a/entropy.c b/entropy.c
index edf1423..2766d90 100644
--- a/entropy.c
+++ b/entropy.c
@@ -35,7 +35,7 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
-RCSID("$Id: entropy.c,v 1.6 2000/04/29 23:30:46 damien Exp $");
+RCSID("$Id: entropy.c,v 1.7 2000/05/01 14:03:56 damien Exp $");
#ifdef EGD_SOCKET
#ifndef offsetof
@@ -520,6 +520,8 @@
if (prng_seed_saved)
return;
+ prng_seed_saved = 1;
+
pw = getpwuid(getuid());
if (pw == NULL)
fatal("Couldn't get password entry for current user (%i): %s",
diff --git a/includes.h b/includes.h
index 1a0e76f..a83e031 100644
--- a/includes.h
+++ b/includes.h
@@ -30,10 +30,7 @@
#include <sys/un.h>
#include <sys/resource.h>
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
#include <netinet/tcp.h>
-#include <netinet/ip.h>
#include <arpa/inet.h>
#include <netdb.h>