[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS cygwin and fstatat
From: |
Eric Blake |
Subject: |
CVS cygwin and fstatat |
Date: |
Fri, 25 Apr 2008 21:17:24 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
CVS cygwin (will become 1.7.0) just added native fstatat support. In the
process, I noticed that findutils was still trying to compile the replacement
fstatat.c, because this cache check was referencing an undefined variable. I'm
checking this in:
>From e2f83854bc3e96ece16f2c0134cabf460cf21293 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Fri, 25 Apr 2008 14:52:38 -0600
Subject: [PATCH] Use native fstatat on cygwin 1.7.0.
* m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
first.
Signed-off-by: Eric Blake <address@hidden>
---
ChangeLog | 6 ++++++
m4/openat.m4 | 7 ++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 769f0f3..605726e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-25 Eric Blake <address@hidden>
+
+ Use native fstatat on cygwin 1.7.0.
+ * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
+ first.
+
2008-04-23 Eric Blake <address@hidden>
Improve memchr2 performance.
diff --git a/m4/openat.m4 b/m4/openat.m4
index 43f46d0..3b5b7ca 100644
--- a/m4/openat.m4
+++ b/m4/openat.m4
@@ -1,7 +1,7 @@
-#serial 15
+#serial 16
# See if we need to use our replacement for Solaris' openat et al functions.
-dnl Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+dnl Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -15,6 +15,7 @@ AC_DEFUN([gl_FUNC_OPENAT],
AC_CHECK_FUNCS_ONCE([lchmod])
AC_CHECK_FUNCS_ONCE([fdopendir])
AC_REPLACE_FUNCS([fchmodat mkdirat openat])
+ AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
yes+yes) ;;
yes+*) AC_LIBOBJ([fstatat]);;
--
1.5.5.1
- CVS cygwin and fstatat,
Eric Blake <=