summaryrefslogtreecommitdiffstats
path: root/sys/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r--sys/sys/stat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 10a3739..d3572c3 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -304,6 +304,14 @@ struct nstat {
#endif /* __BSD_VISIBLE */
+/*
+ * Solaris compatibility definitions.
+ */
+#ifdef _SOLARIS_C_SOURCE
+#define stat64 stat
+#define fstat64 fstat
+#endif
+
#ifndef _KERNEL
__BEGIN_DECLS
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud