X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Futimes-null.m4;h=8d5c8aef7f0324ba919808267c9c3c27550868f4;hb=1b9bd2b9f83a84ede12622d6a040383b6bded37d;hp=927b877dd4c79f8c40680a7045b126f041bcb4d6;hpb=44d7c1c1f004fa9bfb8ec3948de2671a7958cf5b;p=gnulib.git diff --git a/m4/utimes-null.m4 b/m4/utimes-null.m4 index 927b877dd..8d5c8aef7 100644 --- a/m4/utimes-null.m4 +++ b/m4/utimes-null.m4 @@ -1,6 +1,8 @@ -#serial 6 +#serial 7 + +# Copyright (C) 1998, 1999, 2001, 2003, 2004, 2006 Free Software +# Foundation, Inc. -# Copyright (C) 1998, 1999, 2001, 2003, 2004 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,13 +18,15 @@ AC_TRY_RUN([ #undef stat #include #include -main() { +#include +int +main () { struct stat s, t; -exit(!(stat ("conftest.data", &s) == 0 - && utimes("conftest.data", (long *)0) == 0 - && stat("conftest.data", &t) == 0 - && t.st_mtime >= s.st_mtime - && t.st_mtime - s.st_mtime < 120)); +return ! (stat ("conftest.data", &s) == 0 + && utimes ("conftest.data", 0) == 0 + && stat ("conftest.data", &t) == 0 + && t.st_mtime >= s.st_mtime + && t.st_mtime - s.st_mtime < 120)); }], ac_cv_func_utimes_null=yes, ac_cv_func_utimes_null=no,