* fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
[gnulib.git] / m4 / fcntl_h.m4
index 4d90488..35e4b51 100644 (file)
@@ -29,7 +29,7 @@ AC_DEFUN([gl_FCNTL_H],
              {
                if (symlink (".", sym) != 0)
                  return 1;
-               if (open (sym, O_RDONLY | O_NOFOLLOW) == 0)
+               if (0 <= open (sym, O_RDONLY | O_NOFOLLOW))
                  return 1;
              }
            return !constants;]])],