diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-10-07 18:56:10 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-10-07 18:56:10 +1100 |
commit | 538738d861cefb25d78615b1c299d7b618db870c (patch) | |
tree | 91c08e223cf51d20a369af1e0711f3559ae9bd9e /configure.ac | |
parent | 4adeac764e110e12ab481dc72c7c67dbf4b7110a (diff) |
- (dtucker) d_type is not mandated by POSIX, so add fallback code using
stat(), needed on at least cygwin.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 759047f10..80db43af1 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.428 2009/10/07 04:49:48 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.429 2009/10/07 07:56:10 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.428 $) | 18 | AC_REVISION($Revision: 1.429 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -1137,6 +1137,8 @@ AC_CHECK_DECL(DTTOIF, | |||
1137 | #include <fs/ffs/dir.h> | 1137 | #include <fs/ffs/dir.h> |
1138 | ]) | 1138 | ]) |
1139 | 1139 | ||
1140 | AC_CHECK_MEMBERS([struct dirent.d_type],,, [#include <dirent.h>]) | ||
1141 | |||
1140 | AC_MSG_CHECKING([for /proc/pid/fd directory]) | 1142 | AC_MSG_CHECKING([for /proc/pid/fd directory]) |
1141 | if test -d "/proc/$$/fd" ; then | 1143 | if test -d "/proc/$$/fd" ; then |
1142 | AC_DEFINE(HAVE_PROC_PID, 1, [Define if you have /proc/$pid/fd]) | 1144 | AC_DEFINE(HAVE_PROC_PID, 1, [Define if you have /proc/$pid/fd]) |