SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
sysutils/ntfs-3g/patches/patch-ntfsprogs_ntfsclone_c
Normal file
16
sysutils/ntfs-3g/patches/patch-ntfsprogs_ntfsclone_c
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue