cygwin 1.7.0 hasn't been released yet, but just added openat support.  It also 
has birthtime support, but not via any of the checks you are currently using.  
OK to apply this patch to enable find to use these new cygwin features?  (Sorry 
about the line wraps).

2008-04-25  Eric Blake  <[EMAIL PROTECTED]>

        Support cygwin 1.7.0.
        * find/parser.c (parse_newerXY)
        [HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC]: Add support for another
        form of birthtime.
        * import-gnulib.config (gnulib_version): Update to pick up change
        necessary for cygwin fstatat.

Index: import-gnulib.config
===================================================================
RCS file: /sources/findutils/findutils/import-gnulib.config,v
retrieving revision 1.33
diff -u -p -r1.33 import-gnulib.config
--- import-gnulib.config        24 Mar 2008 19:46:11 -0000      1.33
+++ import-gnulib.config        25 Apr 2008 21:31:31 -0000
@@ -1,7 +1,7 @@
 # findutils gnulib.config -*- sh -*-
 
 # What version of gnulib to use?
-gnulib_version="3b3e9653139a9423e7d980cc6f9e3160111c9930"
+gnulib_version="e2f83854bc3e96ece16f2c0134cabf460cf21293"
 destdir="gnulib"
 
 # Random extra gnulib files needed for findutils.
Index: find/parser.c
===================================================================
RCS file: /sources/findutils/findutils/find/parser.c,v
retrieving revision 1.140
diff -u -p -r1.140 parser.c
--- find/parser.c       10 Mar 2008 09:39:30 -0000      1.140
+++ find/parser.c       25 Apr 2008 21:31:31 -0000
@@ -1498,7 +1498,7 @@ parse_newerXY (const struct parser_table
       y = argv[*arg_ptr][7];
 
 
-#if !defined(HAVE_STRUCT_STAT_ST_BIRTHTIME) && !defined
(HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC) && !defined
(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC)
+#if !defined(HAVE_STRUCT_STAT_ST_BIRTHTIME) && !defined
(HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC) && !defined
(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC) && !defined 
HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC
       if ('B' == x || 'B' == y)
        {
          error(0, 0,




_______________________________________________
Findutils-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/findutils-patches

Reply via email to