ports/sysutils/ntfs-3g/patches/patch-ntfsprogs_ntfsclone_c

17 lines
547 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
As noted in the comment our struct statvfs doesn't have f_type so the checks
performed are meaningless on OpenBSD. They're comparisons against hardcoded
magic values anyway. While here, fix the | vs || mismatch.
Index: ntfsprogs/ntfsclone.c
--- ntfsprogs/ntfsclone.c.orig
+++ ntfsprogs/ntfsclone.c
@@ -105,7 +105,7 @@
#undef HAVE_WINDOWS_H
#endif
-#if defined(__sun) | defined(HAVE_WINDOWS_H)
+#if defined(__sun) || defined(HAVE_WINDOWS_H) || defined(__OpenBSD__)
#define NO_STATFS 1 /* statfs(2) and f_type are not universal */
#endif