init.sh: correct an outdated comment
[pspp] / m4 / futimens.m4
index 3b144c39e8443d17f2ec2c5a52d74423dd7d0fe6..255010cbdd484895cb51a73a17ecce4280154dba 100644 (file)
@@ -1,7 +1,7 @@
-# serial 3
+# serial 4
 # See if we need to provide futimens replacement.
 
-dnl Copyright (C) 2009 Free Software Foundation, Inc.
+dnl Copyright (C) 2009, 2010 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.
@@ -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;