From d913c90f6a01f889db65cbb516683aab2f28c533 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 30 Jul 2010 14:20:56 -0600 Subject: [PATCH] futimens: fix configure check * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic. Reported by Bruno Haible. Signed-off-by: Eric Blake --- ChangeLog | 6 ++++++ m4/futimens.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a75d2102e..f43c55ca6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-07-30 Eric Blake + + futimens: fix configure check + * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic. + Reported by Bruno Haible. + 2010-07-30 Bruno Haible getline: Update regarding AIX. diff --git a/m4/futimens.m4 b/m4/futimens.m4 index 68eaa781c..255010cbd 100644 --- a/m4/futimens.m4 +++ b/m4/futimens.m4 @@ -1,4 +1,4 @@ -# serial 3 +# serial 4 # See if we need to provide futimens replacement. dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. @@ -27,7 +27,7 @@ AC_DEFUN([gl_FUNC_FUTIMENS], int fd = creat ("conftest.file", 0600); struct stat st; if (fd < 0) return 1; - if (futimens (AT_FDCWD, NULL)) return 2; + if (futimens (AT_FDCWD, NULL) == 0) return 2; if (futimens (fd, ts)) return 3; sleep (1); ts[0].tv_nsec = UTIME_NOW; -- 2.11.0