From 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:27:12 +0100 Subject: Sync with the latest Gnulib code (d4ec02b3cc) --- gl/fopen.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gl/fopen.c') diff --git a/gl/fopen.c b/gl/fopen.c index f8469a0b..d3b57a98 100644 --- a/gl/fopen.c +++ b/gl/fopen.c @@ -1,5 +1,5 @@ /* Open a stream to a file. - Copyright (C) 2007-2023 Free Software Foundation, Inc. + Copyright (C) 2007-2024 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -33,9 +33,13 @@ orig_fopen (const char *filename, const char *mode) } /* Specification. */ +#ifdef __osf__ /* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ -#include "stdio.h" +# include "stdio.h" +#else +# include +#endif #include #include @@ -225,5 +229,9 @@ rpl_fopen (const char *filename, const char *mode) } #endif + /* open_direction is sometimes used, sometimes unused. + Silence gcc's warning about this situation. */ + (void) open_direction; + return orig_fopen (filename, mode); } -- cgit v1.2.3-74-g34f1