diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-24 00:55:04 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-24 00:55:04 +0000 |
commit | 38e60935bbece7ca891bf9264366c26d7a42414e (patch) | |
tree | ae4cd7626fefeacc689004b87bf4c780a540244b | |
parent | 803f16cbe4acdcfaf21e87c5f655c63b85f8d1a3 (diff) |
- (bal) Generalize lack of UNIX sockets since this also effects Cray
not just Cygwin. Based on patch by Wendy Palm <wendyp@cray.com>
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | defines.h | 26 | ||||
-rw-r--r-- | session.c | 8 |
4 files changed, 30 insertions, 11 deletions
@@ -3,6 +3,8 @@ | |||
3 | Patch by Pekka Savola <pekkas@netcore.fi> | 3 | Patch by Pekka Savola <pekkas@netcore.fi> |
4 | - (bal) Renamed sigaction.[ch] to sigact.[ch]. Causes problems with | 4 | - (bal) Renamed sigaction.[ch] to sigact.[ch]. Causes problems with |
5 | some platforms. | 5 | some platforms. |
6 | - (bal) Generalize lack of UNIX sockets since this also effects Cray | ||
7 | not just Cygwin. Based on patch by Wendy Palm <wendyp@cray.com> | ||
6 | 8 | ||
7 | 20010223 | 9 | 20010223 |
8 | - (bal) Fix --define rh7 in openssh.spec file. Patch by Steve Tell | 10 | - (bal) Fix --define rh7 in openssh.spec file. Patch by Steve Tell |
@@ -4112,4 +4114,4 @@ | |||
4112 | - Wrote replacements for strlcpy and mkdtemp | 4114 | - Wrote replacements for strlcpy and mkdtemp |
4113 | - Released 1.0pre1 | 4115 | - Released 1.0pre1 |
4114 | 4116 | ||
4115 | $Id: ChangeLog,v 1.817 2001/02/24 00:24:19 mouring Exp $ | 4117 | $Id: ChangeLog,v 1.818 2001/02/24 00:55:04 mouring Exp $ |
diff --git a/configure.in b/configure.in index 5d7283360..e236fa491 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.in,v 1.251 2001/02/23 05:05:53 mouring Exp $ | 1 | # $Id: configure.in,v 1.252 2001/02/24 00:55:05 mouring Exp $ |
2 | 2 | ||
3 | AC_INIT(ssh.c) | 3 | AC_INIT(ssh.c) |
4 | 4 | ||
@@ -71,6 +71,7 @@ case "$host" in | |||
71 | AC_DEFINE(IPV4_DEFAULT) | 71 | AC_DEFINE(IPV4_DEFAULT) |
72 | AC_DEFINE(IP_TOS_IS_BROKEN) | 72 | AC_DEFINE(IP_TOS_IS_BROKEN) |
73 | AC_DEFINE(BROKEN_VHANGUP) | 73 | AC_DEFINE(BROKEN_VHANGUP) |
74 | AC_DEFINE(NO_X11_UNIX_SOCKETS) | ||
74 | no_libsocket=1 | 75 | no_libsocket=1 |
75 | no_libnsl=1 | 76 | no_libnsl=1 |
76 | ;; | 77 | ;; |
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _DEFINES_H | 1 | #ifndef _DEFINES_H |
2 | #define _DEFINES_H | 2 | #define _DEFINES_H |
3 | 3 | ||
4 | /* $Id: defines.h,v 1.55 2001/02/16 01:34:57 djm Exp $ */ | 4 | /* $Id: defines.h,v 1.56 2001/02/24 00:55:05 mouring Exp $ */ |
5 | 5 | ||
6 | /* Some platforms need this for the _r() functions */ | 6 | /* Some platforms need this for the _r() functions */ |
7 | #if !defined(_REENTRANT) && !defined(SNI) | 7 | #if !defined(_REENTRANT) && !defined(SNI) |
@@ -138,12 +138,20 @@ typedef char int8_t; | |||
138 | # if (SIZEOF_SHORT_INT == 2) | 138 | # if (SIZEOF_SHORT_INT == 2) |
139 | typedef short int int16_t; | 139 | typedef short int int16_t; |
140 | # else | 140 | # else |
141 | # error "16 bit int type not found." | 141 | # ifdef _CRAY |
142 | typedef long int16_t; | ||
143 | # else | ||
144 | # error "16 bit int type not found." | ||
145 | # endif /* _CRAY */ | ||
142 | # endif | 146 | # endif |
143 | # if (SIZEOF_INT == 4) | 147 | # if (SIZEOF_INT == 4) |
144 | typedef int int32_t; | 148 | typedef int int32_t; |
145 | # else | 149 | # else |
146 | # error "32 bit int type not found." | 150 | # ifdef _CRAY |
151 | typedef long int32_t; | ||
152 | # else | ||
153 | # error "32 bit int type not found." | ||
154 | # endif /* _CRAY */ | ||
147 | # endif | 155 | # endif |
148 | #endif | 156 | #endif |
149 | 157 | ||
@@ -163,12 +171,20 @@ typedef unsigned char u_int8_t; | |||
163 | # if (SIZEOF_SHORT_INT == 2) | 171 | # if (SIZEOF_SHORT_INT == 2) |
164 | typedef unsigned short int u_int16_t; | 172 | typedef unsigned short int u_int16_t; |
165 | # else | 173 | # else |
166 | # error "16 bit int type not found." | 174 | # ifdef _CRAY |
175 | typedef unsigned long u_int16_t; | ||
176 | # else | ||
177 | # error "16 bit int type not found." | ||
178 | # endif | ||
167 | # endif | 179 | # endif |
168 | # if (SIZEOF_INT == 4) | 180 | # if (SIZEOF_INT == 4) |
169 | typedef unsigned int u_int32_t; | 181 | typedef unsigned int u_int32_t; |
170 | # else | 182 | # else |
171 | # error "32 bit int type not found." | 183 | # ifdef _CRAY |
184 | typedef unsigned long u_int32_t; | ||
185 | # else | ||
186 | # error "32 bit int type not found." | ||
187 | # endif | ||
172 | # endif | 188 | # endif |
173 | # endif | 189 | # endif |
174 | #endif | 190 | #endif |
@@ -1366,13 +1366,13 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1366 | "Running %.100s add %.100s %.100s %.100s\n", | 1366 | "Running %.100s add %.100s %.100s %.100s\n", |
1367 | options.xauth_location, display, | 1367 | options.xauth_location, display, |
1368 | auth_proto, auth_data); | 1368 | auth_proto, auth_data); |
1369 | #ifndef HAVE_CYGWIN /* Unix sockets are not supported */ | 1369 | #ifndef NO_X11_UNIX_SOCKETS |
1370 | if (screen != NULL) | 1370 | if (screen != NULL) |
1371 | fprintf(stderr, | 1371 | fprintf(stderr, |
1372 | "Adding %.*s/unix%s %s %s\n", | 1372 | "Adding %.*s/unix%s %s %s\n", |
1373 | (int)(screen-display), display, | 1373 | (int)(screen-display), display, |
1374 | screen, auth_proto, auth_data); | 1374 | screen, auth_proto, auth_data); |
1375 | #endif | 1375 | #endif /* NO_X11_UNIX_SOCKETS */ |
1376 | } | 1376 | } |
1377 | snprintf(cmd, sizeof cmd, "%s -q -", | 1377 | snprintf(cmd, sizeof cmd, "%s -q -", |
1378 | options.xauth_location); | 1378 | options.xauth_location); |
@@ -1380,12 +1380,12 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1380 | if (f) { | 1380 | if (f) { |
1381 | fprintf(f, "add %s %s %s\n", display, | 1381 | fprintf(f, "add %s %s %s\n", display, |
1382 | auth_proto, auth_data); | 1382 | auth_proto, auth_data); |
1383 | #ifndef HAVE_CYGWIN /* Unix sockets are not supported */ | 1383 | #ifndef NO_X11_UNIX_SOCKETS |
1384 | if (screen != NULL) | 1384 | if (screen != NULL) |
1385 | fprintf(f, "add %.*s/unix%s %s %s\n", | 1385 | fprintf(f, "add %.*s/unix%s %s %s\n", |
1386 | (int)(screen-display), display, | 1386 | (int)(screen-display), display, |
1387 | screen, auth_proto, auth_data); | 1387 | screen, auth_proto, auth_data); |
1388 | #endif | 1388 | #endif /* NO_X11_UNIX_SOCKETS */ |
1389 | pclose(f); | 1389 | pclose(f); |
1390 | } else { | 1390 | } else { |
1391 | fprintf(stderr, "Could not run %s\n", | 1391 | fprintf(stderr, "Could not run %s\n", |