]> Savannah Git Hosting - gnulib.git/commitdiff
fcntl: Add witness of gnulib override.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Feb 2020 20:05:10 +0000 (21:05 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Feb 2020 20:05:10 +0000 (21:05 +0100)
Reported by Jens Rehsack <sno@netbsd.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.

* lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
macros.

ChangeLog
lib/fcntl.in.h

index ac651a78f6661955d439aac76aa35f0bc1b76a05..b3856c29371bc2f1980609b1ec91855c80184d35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-24  Bruno Haible  <bruno@clisp.org>
+
+       fcntl: Add witness of gnulib override.
+       Reported by Jens Rehsack <sno@netbsd.org> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
+       * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
+       macros.
+
 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
 
        Update users.txt.
index b2e1e5130d9ce7ffd02568d2eac7edcb308d381e..0a21c957baf0850b6453a14dab7db93b3e8c9b6f 100644 (file)
@@ -116,9 +116,15 @@ _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - "
 #  endif
 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...));
 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...));
+#  if !GNULIB_defined_rpl_fcntl
+#   define GNULIB_defined_rpl_fcntl 1
+#  endif
 # else
 #  if !@HAVE_FCNTL@
 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...));
+#   if !GNULIB_defined_fcntl
+#    define GNULIB_defined_fcntl 1
+#   endif
 #  endif
 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...));
 # endif