summaryrefslogtreecommitdiff
path: root/lib/openat.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/openat.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/openat.c')
-rw-r--r--lib/openat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/openat.c b/lib/openat.c
index cc4b9d0736..0768b48f3d 100644
--- a/lib/openat.c
+++ b/lib/openat.c
@@ -35,6 +35,10 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode)
}
#endif
+/* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc eliminates
+ this include because of the preliminary #include <fcntl.h> above. */
+#include "fcntl.h"
+
#include "openat.h"
#include <stdarg.h>