diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-02 18:58:33 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-02 18:58:33 +0000 |
commit | dd5c5a3ffe39267bc885a6ee23d5621df787427c (patch) | |
tree | 77ba9cb25b482eea0356aca0fb23b827d02ccc1a | |
parent | 25a7785a3099b60289ee01f593aad2b988f0dfae (diff) |
- (bal) Cygwin clean up by Corinna Vinschen <vinschen@redhat.com>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | includes.h | 2 | ||||
-rw-r--r-- | scp.c | 6 |
4 files changed, 5 insertions, 8 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20010103 | ||
2 | - (bal) Cygwin clean up by Corinna Vinschen <vinschen@redhat.com> | ||
3 | |||
1 | 20010102 | 4 | 20010102 |
2 | - (bal) Makefile fix where sourcedir != builddir by Corinna Vinschen | 5 | - (bal) Makefile fix where sourcedir != builddir by Corinna Vinschen |
3 | <vinschen@redhat.com> | 6 | <vinschen@redhat.com> |
diff --git a/configure.in b/configure.in index 9913442ac..32ffa6c93 100644 --- a/configure.in +++ b/configure.in | |||
@@ -316,7 +316,7 @@ AC_CHECK_FUNC(utimes, | |||
316 | AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h) | 316 | AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h) |
317 | 317 | ||
318 | dnl Checks for library functions. | 318 | dnl Checks for library functions. |
319 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) | 319 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) |
320 | dnl Checks for time functions | 320 | dnl Checks for time functions |
321 | AC_CHECK_FUNCS(gettimeofday time) | 321 | AC_CHECK_FUNCS(gettimeofday time) |
322 | dnl Checks for libutil functions | 322 | dnl Checks for libutil functions |
diff --git a/includes.h b/includes.h index ac83a12f0..f3cdae3c2 100644 --- a/includes.h +++ b/includes.h | |||
@@ -29,9 +29,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
29 | #include <sys/wait.h> | 29 | #include <sys/wait.h> |
30 | #include <sys/resource.h> | 30 | #include <sys/resource.h> |
31 | 31 | ||
32 | #ifndef HAVE_CYGWIN | ||
33 | #include <netinet/tcp.h> | 32 | #include <netinet/tcp.h> |
34 | #endif | ||
35 | #include <arpa/inet.h> | 33 | #include <arpa/inet.h> |
36 | 34 | ||
37 | #include <stdio.h> | 35 | #include <stdio.h> |
@@ -1111,11 +1111,7 @@ foregroundproc() | |||
1111 | if (pgrp == -1) | 1111 | if (pgrp == -1) |
1112 | pgrp = getpgrp(); | 1112 | pgrp = getpgrp(); |
1113 | 1113 | ||
1114 | #ifdef HAVE_CYGWIN | 1114 | #ifdef HAVE_TCGETPGRP |
1115 | /* | ||
1116 | * Cygwin only supports tcgetpgrp() for getting the controlling tty | ||
1117 | * currently. | ||
1118 | */ | ||
1119 | return ((ctty_pgrp = tcgetpgrp(STDOUT_FILENO)) != -1 && | 1115 | return ((ctty_pgrp = tcgetpgrp(STDOUT_FILENO)) != -1 && |
1120 | ctty_pgrp == pgrp); | 1116 | ctty_pgrp == pgrp); |
1121 | #else | 1117 | #else |