summaryrefslogtreecommitdiff
path: root/lib/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstat.c')
-rw-r--r--lib/fstat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/fstat.c b/lib/fstat.c
index 41ee761..a892b8f 100644
--- a/lib/fstat.c
+++ b/lib/fstat.c
@@ -1,5 +1,5 @@
/* fstat() replacement.
- Copyright (C) 2011-2018 Free Software Foundation, Inc.
+ Copyright (C) 2011-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -40,10 +40,14 @@ orig_fstat (int fd, struct stat *buf)
#endif
/* Specification. */
+#ifdef __osf__
/* 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 "sys/stat.h"
+#else
+# include <sys/stat.h>
+#endif
#include "stat-time.h"