From: Harald van Dijk Date: Mon, 3 Aug 2020 19:59:04 +0000 (+0200) Subject: fopen: Avoid undesired interactions with glibc headers. X-Git-Tag: v1.0~3828 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b2d4b6c87827e34a694278d085a31508af052a37;p=gnulib.git fopen: Avoid undesired interactions with glibc headers. * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of __need_FILE, as the latter does not work with glibc. --- diff --git a/ChangeLog b/ChangeLog index b078da4d33..ff7b2eb8b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-08-03 Harald van Dijk (tiny change) + + fopen: Avoid undesired interactions with glibc headers. + * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of + __need_FILE, as the latter does not work with glibc. + 2020-08-02 Paul Eggert fcntl: document some F_SETLK errno variations diff --git a/lib/fopen.c b/lib/fopen.c index 4a0cab17c6..252785019b 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -19,12 +19,12 @@ /* If the user's config.h happens to include , let it include only the system's here, so that orig_fopen doesn't recurse to rpl_fopen. */ -#define __need_FILE +#define _GL_ALREADY_INCLUDING_STDIO_H #include /* Get the original definition of fopen. It might be defined as a macro. */ #include -#undef __need_FILE +#undef _GL_ALREADY_INCLUDING_STDIO_H static FILE * orig_fopen (const char *filename, const char *mode)