]> andersk Git - openssh.git/commitdiff
- Fixes for SunOS 4.1.4 from Gordon Atwood <gordon@cs.ualberta.ca>
authordjm <djm>
Sat, 15 Jul 2000 04:59:14 +0000 (04:59 +0000)
committerdjm <djm>
Sat, 15 Jul 2000 04:59:14 +0000 (04:59 +0000)
   - Include floatingpoint.h for entropy.c
   - strerror replacement

ChangeLog
acconfig.h
bsd-misc.c
bsd-misc.h
configure.in
entropy.c
ssh_prng_cmds.in

index 2b3cd0b6ee5ce0bad3a25ca68abcb9f57ee799c9..df4c735a050a1a52d9d7ed67bdc4a4fdd736cd87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-20000713
+20000715
  - (djm) OpenBSD CVS updates
    - provos@cvs.openbsd.org  2000/07/13 16:53:22
      [aux.c readconf.c servconf.c ssh.h]
@@ -16,6 +16,9 @@
    - djm@cvs.openbsd.org     2000/07/14 22:01:38
      [ssh-keygen.c ssh.c]
      Always create ~/.ssh with mode 700; ok Markus
+ - Fixes for SunOS 4.1.4 from Gordon Atwood <gordon@cs.ualberta.ca>
+   - Include floatingpoint.h for entropy.c
+   - strerror replacement
 
 20000712
  - (djm) Remove -lresolve for Reliant Unix
index 4528be6787e478acd46de1e32ef323a8b30f5285..358390bc49d175b8b439755ecde207450a8c3541 100644 (file)
@@ -6,6 +6,9 @@
 
 @TOP@
 
+/* Define if your system defines sys_errlist[] */
+#undef HAVE_SYS_ERRLIST
+
 /* Define if your system choked on IP TOS setting */
 #undef IP_TOS_IS_BROKEN
 
index c22cde3282d163f04d70711b4369b36bfc1d4573..e6b529e1e6f81cbf4c7f6311f3f5dcb5c1d0fc87 100644 (file)
@@ -157,3 +157,10 @@ int seteuid(uid_t euid)
        return(setreuid(-1,euid));
 }
 #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
+
+#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST)
+const char *strerror(void)
+{
+       return(sys_errlist[errno]);
+}
+#endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */
index cdf8e2b6782f2f7d2c4792be85ddb76708bf20e9..76b4e1a78a0d211042f08a81a84cf7cef3797ad5 100644 (file)
@@ -58,4 +58,8 @@ int innetgr(const char *netgroup, const char *host,
 int seteuid(uid_t euid);
 #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
 
+#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST)
+const char *strerror(void);
+#endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */
+
 #endif /* _BSD_MISC_H */
index 0b8047a368ce4b8a16b74928757c207589eb7762..92659857c647c91286d09c32ba2db294581e5ce9 100644 (file)
@@ -216,10 +216,10 @@ if test -z "$no_libnsl" ; then
 fi
 
 # Checks for header files.
-AC_CHECK_HEADERS(bstring.h endian.h lastlog.h limits.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/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h usersec.h util.h utmp.h utmpx.h)
+AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h lastlog.h limits.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/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h usersec.h util.h utmp.h utmpx.h)
 
 # Checks for library functions.
-AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage inet_aton innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop)
+AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage inet_aton innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strerror strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop)
 dnl    checks for time functions
 AC_CHECK_FUNCS(gettimeofday time)
 dnl    checks for libutil functions
@@ -724,6 +724,18 @@ if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
 fi
 
 
+AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
+       AC_TRY_LINK([], 
+               [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);], 
+               [ ac_cv_libc_defines_sys_errlist="yes" ],
+               [ ac_cv_libc_defines_sys_errlist="no" ]
+       )
+])
+if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
+       AC_DEFINE(HAVE_SYS_ERRLIST)
+fi
+
+
 # Looking for programs, paths and files
 AC_ARG_WITH(rsh,
        [  --with-rsh=PATH         Specify path to remote shell program ],
index 84b1dd1d951d2fd908839db00e0e96c3855153d3..b80b61a5f6ecbdcf79df1f68be4454ee5f48da33 100644 (file)
--- a/entropy.c
+++ b/entropy.c
 #include <openssl/rand.h>
 #include <openssl/sha.h>
 
+/* SunOS 4.4.4 needs this */
+#ifdef HAVE_FLOATINGPOINT_H
+# include <floatingpoint.h>
+#endif /* HAVE_FLOATINGPOINT_H */
+
 RCSID("$Id$");
 
 #ifndef offsetof
index df45ed22e98a88a5786c209ac8a4043bdca0fd48..d7389d7e9797a6dcbfa7489426172f40da6d6c50 100644 (file)
@@ -15,6 +15,7 @@
 "netstat -an"                          @PROG_NETSTAT@  0.05
 "netstat -in"                          @PROG_NETSTAT@  0.05
 "netstat -rn"                          @PROG_NETSTAT@  0.02
+"netstat -pn"                          @PROG_NETSTAT@  0.02
 "netstat -s"                           @PROG_NETSTAT@  0.02
 
 "arp -a -n"                            @PROG_ARP@      0.02
This page took 0.053108 seconds and 5 git commands to generate.