summaryrefslogtreecommitdiff
path: root/lib/fopen.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-08 00:03:50 +0200
committerBruno Haible <bruno@clisp.org>2011-09-08 00:03:50 +0200
commit6563cd7648f78ce137eb66d4a9a77f9f1666d17f (patch)
treea2b46e49d19be3e220ec364693445fceab2cc819 /lib/fopen.c
parent6a19c79db4d42ca2b29e56a6b080d5738073fddb (diff)
downloadgnulib-6563cd7648f78ce137eb66d4a9a77f9f1666d17f.tar.gz
openat: Work around compilation error with OSF/1 5.1 DTK cc.
* lib/fopen.c: Use different syntax for include of <stdio.h>. * lib/freopen.c: Likewise. * lib/fstatat.c: Use different syntax for include of <sys/stat.h>. * lib/lstat.c: Likewise. * lib/stat.c: Likewise. * lib/open.c: Use different syntax for include of <fcntl.h>. * lib/openat.c: Include fcntl.h again, explicitly.
Diffstat (limited to 'lib/fopen.c')
-rw-r--r--lib/fopen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fopen.c b/lib/fopen.c
index 33412fbcea..e9ba6bba19 100644
--- a/lib/fopen.c
+++ b/lib/fopen.c
@@ -33,7 +33,9 @@ orig_fopen (const char *filename, const char *mode)
}
/* Specification. */
-#include <stdio.h>
+/* 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"
#include <errno.h>
#include <fcntl.h>