]> Savannah Git Hosting - gnulib.git/commitdiff
openat: Work around compilation error with OSF/1 5.1 DTK cc.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Sep 2011 22:03:50 +0000 (00:03 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Sep 2011 22:03:50 +0000 (00:03 +0200)
* 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.

ChangeLog
lib/fopen.c
lib/freopen.c
lib/fstatat.c
lib/lstat.c
lib/open.c
lib/openat.c
lib/stat.c

index 2f64d746e186de628e01ed869087d35c20eda3b8..56ada704e9a163411c2cb7f3729d94a4056e4d89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-09-07  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
 
        parse-datetime: document the newly accepted format
index 33412fbcea1f314097535830d942f218b1e5d059..e9ba6bba19e02048425b0a1e90da9f83e15671ce 100644 (file)
@@ -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>
index bae06468401222fb9e7c1c3ee07cd7b1ffbe8e6b..7069ec98fc6f6b6ed775388a71f641dcc92ca0f0 100644 (file)
@@ -33,7 +33,9 @@ orig_freopen (const char *filename, const char *mode, FILE *stream)
 }
 
 /* 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 <string.h>
 
index 326ce215a7bbcc6bb8ab92e92bd6955b3daedecf..4b01d6660c22b2c323302a4274a8291036d1ce7e 100644 (file)
@@ -36,7 +36,10 @@ orig_fstatat (int fd, char const *filename, struct stat *buf, int flags)
 }
 #endif
 
-#include <sys/stat.h>
+/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
+   eliminates this include because of the preliminary #include <sys/stat.h>
+   above.  */
+#include "sys/stat.h"
 
 #include <errno.h>
 #include <fcntl.h>
index 29fc6d25f90a4d6a45a0b64c2e7571594a216da4..d786288f2b78ee434a072803c6070d6794b7834f 100644 (file)
@@ -42,7 +42,10 @@ orig_lstat (const char *filename, struct stat *buf)
 }
 
 /* Specification.  */
-# include <sys/stat.h>
+/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
+   eliminates this include because of the preliminary #include <sys/stat.h>
+   above.  */
+# include "sys/stat.h"
 
 # include <string.h>
 # include <errno.h>
index ffd3b8dedc54d82c6d171a8e6766093d0efc23a9..8dc36ef1e48100796a6b3a4521c636b2a800df61 100644 (file)
@@ -34,7 +34,9 @@ orig_open (const char *filename, int flags, mode_t mode)
 }
 
 /* Specification.  */
-#include <fcntl.h>
+/* 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 <errno.h>
 #include <stdarg.h>
index cc4b9d073682f52e5be13dc06bedcd8505c549e3..0768b48f3dc95a1c9f15d37bfe1cc45a81b43501 100644 (file)
@@ -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>
index 6c354d1d35735e266251a91074520f41b637c1a8..1002f161bfa5e07b0f2146d31bc5efa635a19a3b 100644 (file)
@@ -34,7 +34,10 @@ orig_stat (const char *filename, struct stat *buf)
 }
 
 /* Specification.  */
-#include <sys/stat.h>
+/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
+   eliminates this include because of the preliminary #include <sys/stat.h>
+   above.  */
+#include "sys/stat.h"
 
 #include <errno.h>
 #include <limits.h>