aboutsummaryrefslogtreecommitdiff
path: root/sysutils/e2fsprogs/files
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2015-01-11 11:44:11 +0000
committerMatthias Andree <mandree@FreeBSD.org>2015-01-11 11:44:11 +0000
commite628120d672d3aee7514216462973092b4fc9106 (patch)
tree1bbeec1a7226bf56dc9950661a3c165c2a1cfeee /sysutils/e2fsprogs/files
parent6ebf6ce2835b225c004ce8e0799ef7d2117bc049 (diff)
downloadports-e628120d672d3aee7514216462973092b4fc9106.tar.gz
ports-e628120d672d3aee7514216462973092b4fc9106.zip
Notes
Diffstat (limited to 'sysutils/e2fsprogs/files')
-rw-r--r--sysutils/e2fsprogs/files/patch-lib_blkid_getsize.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/e2fsprogs/files/patch-lib_blkid_getsize.c b/sysutils/e2fsprogs/files/patch-lib_blkid_getsize.c
new file mode 100644
index 000000000000..6ccf323f4c1f
--- /dev/null
+++ b/sysutils/e2fsprogs/files/patch-lib_blkid_getsize.c
@@ -0,0 +1,20 @@
+--- lib/blkid/getsize.c.orig 2014-08-02 20:26:22 UTC
++++ lib/blkid/getsize.c
+@@ -127,7 +127,7 @@ blkid_loff_t blkid_get_dev_size(int fd)
+ return (blkid_loff_t)this_floppy.size << 9;
+ }
+ #endif
+-#ifdef HAVE_SYS_DISKLABEL_H
++#if defined(HAVE_SYS_DISKLABEL_H) && defined(DIOCGDINFO)
+ {
+ int part = -1;
+ struct disklabel lab;
+@@ -154,7 +154,7 @@ blkid_loff_t blkid_get_dev_size(int fd)
+ return pp->p_size << 9;
+ }
+ }
+-#endif /* HAVE_SYS_DISKLABEL_H */
++#endif /* defined(HAVE_SYS_DISKLABEL_H) && defined(DIOCGDINFO) */
+ {
+ #if defined(HAVE_FSTAT64) && !defined(__OSX_AVAILABLE_BUT_DEPRECATED)
+ struct stat64 st;