diff lib/lstat.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
parents 9fd857e43955
children 8250f2777afc
line wrap: on
line diff
--- a/lib/lstat.c
+++ b/lib/lstat.c
@@ -42,7 +42,10 @@
 }
 
 /* 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>