source:
freewrt/package/openssh/patches/cross-compile.patch@
428f140
| Last change on this file since 428f140 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 2.8 KB | |
-
openssh-4.0p1
diff -Nur openssh-4.0p1/configure openssh-4.0p1.patched/configure
old new 5524 5524 *-*-linux*) 5525 5525 no_dev_ptmx=1 5526 5526 check_for_libcrypt_later=1 5527 check_for_openpty_ctty_bug= 15527 check_for_openpty_ctty_bug=0 5528 5528 cat >>confdefs.h <<\_ACEOF 5529 5529 #define DONT_TRY_OTHER_AF 1 5530 5530 _ACEOF … … 12810 12810 fi 12811 12811 fi 12812 12812 12813 if test ! -z "$check_for_openpty_ctty_bug"; then12814 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&512815 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&612816 if test "$cross_compiling" = yes; then12817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling12818 See \`config.log' for more details." >&512819 echo "$as_me: error: cannot run test program while cross compiling12820 See \`config.log' for more details." >&2;}12821 { (exit 1); exit 1; }; }12822 else12823 cat >conftest.$ac_ext <<_ACEOF12824 /* confdefs.h. */12825 _ACEOF12826 cat confdefs.h >>conftest.$ac_ext12827 cat >>conftest.$ac_ext <<_ACEOF12828 /* end confdefs.h. */12829 12830 #include <stdio.h>12831 #include <sys/fcntl.h>12832 #include <sys/types.h>12833 #include <sys/wait.h>12834 12835 int12836 main()12837 {12838 pid_t pid;12839 int fd, ptyfd, ttyfd, status;12840 12841 pid = fork();12842 if (pid < 0) { /* failed */12843 exit(1);12844 } else if (pid > 0) { /* parent */12845 waitpid(pid, &status, 0);12846 if (WIFEXITED(status))12847 exit(WEXITSTATUS(status));12848 else12849 exit(2);12850 } else { /* child */12851 close(0); close(1); close(2);12852 setsid();12853 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);12854 fd = open("/dev/tty", O_RDWR | O_NOCTTY);12855 if (fd >= 0)12856 exit(3); /* Acquired ctty: broken */12857 else12858 exit(0); /* Did not acquire ctty: OK */12859 }12860 }12861 12862 _ACEOF12863 rm -f conftest$ac_exeext12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&512865 (eval $ac_link) 2>&512866 ac_status=$?12867 echo "$as_me:$LINENO: \$? = $ac_status" >&512868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&512870 (eval $ac_try) 2>&512871 ac_status=$?12872 echo "$as_me:$LINENO: \$? = $ac_status" >&512873 (exit $ac_status); }; }; then12874 12875 echo "$as_me:$LINENO: result: yes" >&512876 echo "${ECHO_T}yes" >&612877 12878 else12879 echo "$as_me: program exited with status $ac_status" >&512880 echo "$as_me: failed program was:" >&512881 sed 's/^/| /' conftest.$ac_ext >&512882 12883 ( exit $ac_status )12884 12885 echo "$as_me:$LINENO: result: no" >&512886 echo "${ECHO_T}no" >&612887 cat >>confdefs.h <<\_ACEOF12888 #define SSHD_ACQUIRES_CTTY 112889 _ACEOF12890 12891 12892 12893 fi12894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext12895 fi12896 fi12897 12813 12898 12814 if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then 12899 12815 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
Note:
See TracBrowser
for help on using the repository browser.
