From 8bf7fa8d4314cc6d7f915735c014b0809db0d92e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 24 Feb 2020 21:05:10 +0100 Subject: [PATCH] fcntl: Add witness of gnulib override. Reported by Jens Rehsack in . * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New macros. --- ChangeLog | 8 ++++++++ lib/fcntl.in.h | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index ac651a78f6..b3856c2937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-02-24 Bruno Haible + + fcntl: Add witness of gnulib override. + Reported by Jens Rehsack in + . + * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New + macros. + 2020-02-23 Assaf Gordon Update users.txt. diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index b2e1e5130d..0a21c957ba 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h @@ -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 -- 2.39.5