aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/lib/libspl/include
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2020-09-18 23:21:24 +0000
committerMatt Macy <mmacy@FreeBSD.org>2020-09-18 23:21:24 +0000
commit2c48331d28f16c0efce5a72a81e7d71668c4a158 (patch)
tree3b7c79252e9c0d269630439a5ef3e9b8a9f8cc3e /sys/contrib/openzfs/lib/libspl/include
parentd8d2dda141c198a2e9863584e2e61566cc6b222d (diff)
parent04bab0082226f7e72c41ad528298c43edc3fa316 (diff)
downloadsrc-2c48331d28f16c0efce5a72a81e7d71668c4a158.tar.gz
src-2c48331d28f16c0efce5a72a81e7d71668c4a158.zip
MFV 2.0-rc2
- Fixes divide by zero for unusual hz - remove cryptodev dependency
Notes
Notes: svn path=/head/; revision=365894
Diffstat (limited to 'sys/contrib/openzfs/lib/libspl/include')
-rw-r--r--sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/stat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/stat.h b/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/stat.h
index 82c86262fff3..07f9762f09ee 100644
--- a/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/stat.h
+++ b/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/stat.h
@@ -28,6 +28,8 @@
#include_next <sys/stat.h>
+/* Note: this file can be used on linux/macOS when bootstrapping tools. */
+#if defined(__FreeBSD__)
#include <sys/mount.h> /* for BLKGETSIZE64 */
#define stat64 stat
@@ -68,4 +70,5 @@ fstat64_blk(int fd, struct stat64 *st)
return (0);
}
+#endif /* defined(__FreeBSD__) */
#endif /* _LIBSPL_SYS_STAT_H */