changeset 15581:95adf5bf155d

openat: Work around compilation error with OSF/1 5.1 DTK cc. * lib/openat.h: Use different syntax for include of <fcntl.h>.
author Bruno Haible <bruno@clisp.org>
date Wed, 07 Sep 2011 11:48:23 +0200
parents 6ed6226ab0af
children c5fde8111cd7
files ChangeLog lib/openat.h
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
-2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
-
-	parse-datetime: document the newly accepted format
-	* doc/parse-datetime.texi (Combined date and time of day items):
-	New section.
+2011-09-07  Bruno Haible  <bruno@clisp.org>
+
+	openat: Work around compilation error with OSF/1 5.1 DTK cc.
+	* lib/openat.h: Use different syntax for include of <fcntl.h>.
 
 2011-09-06  Bruno Haible  <bruno@clisp.org>
 
--- a/lib/openat.h
+++ b/lib/openat.h
@@ -19,7 +19,9 @@
 #ifndef _GL_HEADER_OPENAT
 #define _GL_HEADER_OPENAT
 
-#include <fcntl.h>
+/* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc miscompiles
+   openat.c because that file has a preliminary #include <fcntl.h>.  */
+#include "fcntl.h"
 
 #include <sys/types.h>
 #include <sys/stat.h>