From 9a036faded3bdc29d0d147826f79ba15537f4c1e Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Thu, 14 Feb 2008 11:06:48 +0000 Subject: Fixed some configuration issues in OpenSSH and paid more attention to some autoconf warnings. git-svn-id: http://svn.telesphoreo.org/trunk@80 514c082c-b64e-11dc-b46d-3d985efe055d --- data/openssh/dirent.diff | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/openssh/dirent.diff (limited to 'data/openssh/dirent.diff') diff --git a/data/openssh/dirent.diff b/data/openssh/dirent.diff new file mode 100644 index 000000000..3808d5073 --- /dev/null +++ b/data/openssh/dirent.diff @@ -0,0 +1,29 @@ +diff -ru openssh-4.7p1/configure.ac openssh-4.7p1+iPhone/configure.ac +--- openssh-4.7p1/configure.ac 2007-08-10 04:36:12.000000000 +0000 ++++ openssh-4.7p1+iPhone/configure.ac 2008-02-09 09:58:08.000000000 +0000 +@@ -1023,24 +1023,7 @@ + AC_CHECK_DECLS(GLOB_NOMATCH, , , [#include ]) + + AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) +-AC_RUN_IFELSE( +- [AC_LANG_SOURCE([[ +-#include +-#include +-int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} +- ]])], +- [AC_MSG_RESULT(yes)], +- [ +- AC_MSG_RESULT(no) +- AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME, 1, +- [Define if your struct dirent expects you to +- allocate extra space for d_name]) +- ], +- [ +- AC_MSG_WARN([cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME]) +- AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME) +- ] +-) ++AC_MSG_RESULT(yes) + + AC_MSG_CHECKING([for /proc/pid/fd directory]) + if test -d "/proc/$$/fd" ; then -- cgit v1.2.3