* lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
__need_FILE, as the latter does not work with glibc.
+2020-08-03 Harald van Dijk <harald@gigawatt.nl> (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 <eggert@cs.ucla.edu>
fcntl: document some F_SETLK errno variations
/* If the user's config.h happens to include <stdio.h>, let it include only
the system's <stdio.h> here, so that orig_fopen doesn't recurse to
rpl_fopen. */
-#define __need_FILE
+#define _GL_ALREADY_INCLUDING_STDIO_H
#include <config.h>
/* Get the original definition of fopen. It might be defined as a macro. */
#include <stdio.h>
-#undef __need_FILE
+#undef _GL_ALREADY_INCLUDING_STDIO_H
static FILE *
orig_fopen (const char *filename, const char *mode)