openat: Work around compilation error with OSF/1 5.1 DTK cc.
[gnulib.git] / lib / fstatat.c
index 326ce21..4b01d66 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>