From: Bruno Haible Date: Mon, 24 Feb 2020 20:05:10 +0000 (+0100) Subject: fcntl: Add witness of gnulib override. X-Git-Tag: v1.0~4197 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=8bf7fa8d4314cc6d7f915735c014b0809db0d92e;p=gnulib.git fcntl: Add witness of gnulib override. Reported by Jens Rehsack in . * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New macros. --- 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