]> andersk Git - openssh.git/commitdiff
- (djm) Bug #456: Support for NEC SX6 with Unicos; from wendyp@cray.com
authordjm <djm>
Mon, 24 Feb 2003 04:45:42 +0000 (04:45 +0000)
committerdjm <djm>
Mon, 24 Feb 2003 04:45:42 +0000 (04:45 +0000)
ChangeLog
config.sub
configure.ac
openbsd-compat/base64.c
openbsd-compat/base64.h

index 14b99fa283dc7ca0a40e9c865a43f2eb4f1ff0df..85899ce9670b6d925687c8826a5355fa1b5c4b09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -86,6 +86,7 @@
  - (djm) Rest of Bug #499: Import a basename() function from OpenBSD libc
  - (djm) Bug #494: Allow multiple accounts on Windows 9x/Me; 
    From vinschen@redhat.com
+ - (djm) Bug #456: Support for NEC SX6 with Unicos; from wendyp@cray.com
 
 20030211
  - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com
index 9ff085efaf7fcd45cacc11aff70bc30fef9099b7..a03c1d15a868c20a8831f8dd9c67b7df27b84686 100755 (executable)
@@ -887,6 +887,10 @@ case $basic_machine in
                basic_machine=sv1-cray
                os=-unicos
                ;;
+        sx*-nec)
+               basic_machine=sx6-nec
+               os=-sysv
+               ;;
        symmetry)
                basic_machine=i386-sequent
                os=-dynix
index e52d0f0b817cbb40672faed647256679ea0100ad..790b54d9c19e981fd2785a918d06370131b34284 100644 (file)
@@ -600,18 +600,20 @@ AC_ARG_WITH(tcp-wrappers,
        ]
 )
 
-dnl    Checks for library functions.
-AC_CHECK_FUNCS(arc4random b64_ntop bcopy basename bindresvport_sa \
-       clock fchmod fchown freeaddrinfo futimes gai_strerror \
-       getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\
-       getrlimit getrusage getttyent glob inet_aton inet_ntoa \
-       inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp \
-       mmap ngetaddrinfo nsleep openpty ogetaddrinfo pstat readpassphrase \
-       realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
-       setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
-       setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
-       socketpair strerror strlcat strlcpy strmode strnvis sysconf tcgetpgrp \
-       truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty)
+dnl    Checks for library functions. Please keep in alphabetical order
+AC_CHECK_FUNCS(\
+       arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
+       bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
+       gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
+       getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
+       inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
+       mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
+       readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
+       setegid setenv seteuid setgroups setlogin setpcred setproctitle \
+       setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
+       snprintf socketpair strerror strlcat strlcpy strmode strnvis \
+       sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
+)
 
 AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP))
 
index 005170b80dfd55fbb83c5f4053a80eab023f422b..91a5ab0ed8248774093cb3162017a0adba5a516b 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "includes.h"
 
-#if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP)
+#if (!defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP)) || (!defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON))
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -130,6 +130,7 @@ static const char Pad64 = '=';
           characters followed by one "=" padding character.
    */
 
+#if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) 
 int
 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
 {
@@ -190,6 +191,9 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
        target[datalength] = '\0';      /* Returned value doesn't count \0. */
        return (datalength);
 }
+#endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */
+
+#if !defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON)
 
 /* skips all whitespace anywhere.
    converts characters, four at a time, starting at (or after)
@@ -314,4 +318,5 @@ b64_pton(char const *src, u_char *target, size_t targsize)
        return (tarindex);
 }
 
-#endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */
+#endif /* !defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON) */
+#endif 
index a49bea460b3529da2120e07a13b3089315c0617c..4e807cbc90a6ba46504c90ab4e54983c3143c2cb 100644 (file)
@@ -9,10 +9,15 @@
 # ifndef HAVE_B64_NTOP
 int b64_ntop(u_char const *src, size_t srclength, char *target, 
     size_t targsize);
-int b64_pton(char const *src, u_char *target, size_t targsize);
 # endif /* !HAVE_B64_NTOP */
 # define __b64_ntop b64_ntop
-# define __b64_pton b64_pton
 #endif /* HAVE___B64_NTOP */
 
+#ifndef HAVE___B64_PTON
+# ifndef HAVE_B64_PTON
+int b64_pton(char const *src, u_char *target, size_t targsize);
+# endif /* !HAVE_B64_PTON */
+# define __b64_pton b64_pton
+#endif /* HAVE___B64_PTON */
+
 #endif /* _BSD_BASE64_H */
This page took 0.056686 seconds and 5 git commands to generate.