openat: Work around compilation error with OSF/1 5.1 DTK cc.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Sep 2011 09:48:23 +0000 (11:48 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Sep 2011 09:48:23 +0000 (11:48 +0200)
* lib/openat.h: Use different syntax for include of <fcntl.h>.

ChangeLog
lib/openat.h

index 2f64d74..79d9777 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
-2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
+2011-09-07  Bruno Haible  <bruno@clisp.org>
 
-       parse-datetime: document the newly accepted format
-       * doc/parse-datetime.texi (Combined date and time of day items):
-       New section.
+       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>
 
index b26571f..fb4f4d8 100644 (file)
@@ -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>