]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fopen, freopen: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:38:24 +0000 (12:38 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:38:24 +0000 (12:38 +0200)
* lib/fopen.c: Simplify include of <stdio.h>.
* lib/freopen.c: Likewise.

ChangeLog
lib/fopen.c
lib/freopen.c

index 6535fac54802dc417e7cfea17df97055bfc57303..373509bba113ee67d60d7aa2f200b903ad82596a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       fopen, freopen: Remove support for OSF/1.
+       * lib/fopen.c: Simplify include of <stdio.h>.
+       * lib/freopen.c: Likewise.
+
        creat, open, openat: Remove support for OSF/1.
        * lib/creat.c: Simplify include of <fcntl.h>.
        * lib/open.c: Likewise.
index 41587d2c054e63cd1d982cf43fea85e9d427bad4..586f6512633b6656f1cee9aba35ed20a65bdfa6a 100644 (file)
@@ -33,13 +33,7 @@ orig_fopen (const char *filename, const char *mode)
 }
 
 /* Specification.  */
-#ifdef __osf__
-/* Write "stdio.h" here, not <stdio.h>, otherwise OSF/1 5.1 DTK cc eliminates
-   this include because of the preliminary #include <stdio.h> above.  */
-# include "stdio.h"
-#else
-# include <stdio.h>
-#endif
+#include <stdio.h>
 
 #include <errno.h>
 #include <fcntl.h>
index b65b7cf851619041be3cd2c149dbf9a41395eb6d..b0a26eaa172fcecaec438275ad435e68048ada89 100644 (file)
@@ -35,13 +35,7 @@ orig_freopen (const char *filename, const char *mode, FILE *stream)
 }
 
 /* Specification.  */
-#ifdef __osf__
-/* Write "stdio.h" here, not <stdio.h>, otherwise OSF/1 5.1 DTK cc eliminates
-   this include because of the preliminary #include <stdio.h> above.  */
-# include "stdio.h"
-#else
-# include <stdio.h>
-#endif
+#include <stdio.h>
 
 #include <fcntl.h>
 #include <string.h>