diff lib/fstatat.c @ 15583:716e67b8d5a9

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.
author Bruno Haible <bruno@clisp.org>
date Thu, 08 Sep 2011 00:03:50 +0200 (2011-09-07)
parents f888e5e48e69
children 1bf33e67ddd8
line wrap: on
line diff
--- a/lib/fstatat.c
+++ b/lib/fstatat.c
@@ -36,7 +36,10 @@
 }
 #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>