Mercurial > hg > octave-lojdl > gnulib-hg
comparison m4/fcntl_h.m4 @ 7362:9bc38b8714f3
* fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 25 Sep 2006 13:02:15 +0000 |
parents | 3307ae6ea2e5 |
children | e23b1333a117 |
comparison
equal
deleted
inserted
replaced
7361:3e4fae4bec76 | 7362:9bc38b8714f3 |
---|---|
27 [[static char const sym[] = "conftest.sym"; | 27 [[static char const sym[] = "conftest.sym"; |
28 if (O_NOFOLLOW) | 28 if (O_NOFOLLOW) |
29 { | 29 { |
30 if (symlink (".", sym) != 0) | 30 if (symlink (".", sym) != 0) |
31 return 1; | 31 return 1; |
32 if (open (sym, O_RDONLY | O_NOFOLLOW) == 0) | 32 if (0 <= open (sym, O_RDONLY | O_NOFOLLOW)) |
33 return 1; | 33 return 1; |
34 } | 34 } |
35 return !constants;]])], | 35 return !constants;]])], |
36 [gl_cv_header_working_fcntl_h=yes], | 36 [gl_cv_header_working_fcntl_h=yes], |
37 [gl_cv_header_working_fcntl_h=no], | 37 [gl_cv_header_working_fcntl_h=no], |