* m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
Reported by Bruno Haible.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2010-07-30 Eric Blake <eblake@redhat.com>
+
+ futimens: fix configure check
+ * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
+ Reported by Bruno Haible.
+
2010-07-30 Bruno Haible <bruno@clisp.org>
getline: Update regarding AIX.
-# serial 3
+# serial 4
# See if we need to provide futimens replacement.
dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
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;