aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xfsprogs
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2006-05-27 13:03:06 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2006-05-27 13:03:06 +0000
commite17cff3a3a73ad4f1848939d5bb5664931d68562 (patch)
tree4530b83e93a65b6836abcc185f2f22e83e40727a /sysutils/xfsprogs
parent7cae8a23467cb8040f50369a732ad35665d45967 (diff)
downloadports-e17cff3a3a73ad4f1848939d5bb5664931d68562.tar.gz
ports-e17cff3a3a73ad4f1848939d5bb5664931d68562.zip
Notes
Diffstat (limited to 'sysutils/xfsprogs')
-rw-r--r--sysutils/xfsprogs/files/patch-freebsd.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/sysutils/xfsprogs/files/patch-freebsd.h b/sysutils/xfsprogs/files/patch-freebsd.h
index b61ee9150213..963f5074602c 100644
--- a/sysutils/xfsprogs/files/patch-freebsd.h
+++ b/sysutils/xfsprogs/files/patch-freebsd.h
@@ -1,5 +1,5 @@
--- include/freebsd.h.orig Mon Jan 16 22:46:48 2006
-+++ include/freebsd.h Sat May 27 03:35:21 2006
++++ include/freebsd.h Sat May 27 08:57:20 2006
@@ -27,7 +27,13 @@
#include <paths.h>
#include <uuid.h>
@@ -15,11 +15,10 @@
/* FreeBSD file API is 64-bit aware */
#define fstat64 fstat
-@@ -38,15 +44,6 @@
- #define pread64 pread
+@@ -39,15 +45,6 @@
#define fdatasync fsync
#define memalign(a,size) valloc(size)
--
+
-typedef u_int8_t __u8;
-typedef int8_t __s8;
-typedef u_int16_t __u16;
@@ -28,6 +27,25 @@
-typedef int32_t __s32;
-typedef u_int64_t __u64;
-typedef int64_t __s64;
-
+-
#define constpp char * const *
+ #define EFSCORRUPTED 990 /* Filesystem is corrupted */
+@@ -84,7 +81,7 @@
+ struct statfs buf;
+ if (fstatfs(fd, &buf) < 0)
+ return 0;
+- return strcpy(buf.f_fstypename, "xfs") == 0;
++ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
+ }
+
+ static __inline__ int platform_test_xfs_path(const char *path)
+@@ -92,7 +89,7 @@
+ struct statfs buf;
+ if (statfs(path, &buf) < 0)
+ return 0;
+- return strcpy(buf.f_fstypename, "xfs") == 0;
++ return strncmp(buf.f_fstypename, "xfs", 4) == 0;
+ }
+
+ static __inline__ int platform_fstatfs(int fd, struct statfs *buf)