diff options
author | Bruno Haible <bruno@clisp.org> | 2011-07-25 23:31:54 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-07-25 23:31:54 +0200 |
commit | 208e667b5f8c696e723da34171fbaa6f01246f3b (patch) | |
tree | 0c31b22515db0c5c78e2c62c31ff40c7b01375ee /m4/open.m4 | |
parent | 1a86c594b0d0e5c65899f1bbe1cca36d501ca5d3 (diff) | |
download | gnulib-208e667b5f8c696e723da34171fbaa6f01246f3b.tar.gz |
open: Remove call-in from fchdir.m4.
* m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
Diffstat (limited to 'm4/open.m4')
-rw-r--r-- | m4/open.m4 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/m4/open.m4 b/m4/open.m4 index 690cc648d0..454eb42a2a 100644 --- a/m4/open.m4 +++ b/m4/open.m4 @@ -1,4 +1,4 @@ -# open.m4 serial 12 +# open.m4 serial 13 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -62,6 +62,16 @@ changequote([,])dnl esac ;; esac + dnl Replace open() for supporting the gnulib-defined fchdir() function, + dnl to keep fchdir's bookkeeping up-to-date. + m4_ifdef([gl_FUNC_FCHDIR], [ + if test $REPLACE_OPEN = 0; then + gl_TEST_FCHDIR + if test $HAVE_FCHDIR = 0; then + gl_REPLACE_OPEN + fi + fi + ]) dnl Replace open() for supporting the gnulib-defined O_NONBLOCK flag. m4_ifdef([gl_NONBLOCKING_IO], [ if test $REPLACE_OPEN = 0; then |