summaryrefslogtreecommitdiff
path: root/sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-01-24 03:43:33 -0600
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-01-24 03:43:33 -0600
commit897095052aabbe5e1173489e2e2e95ab7fc8b1f9 (patch)
tree018df398ac28a65df4a1f98d14f9339c51898d6f /sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch
parentce08c4a8bed21dd61229556b105dc1d4c779d607 (diff)
downloadpackages-897095052aabbe5e1173489e2e2e95ab7fc8b1f9.tar.gz
packages-897095052aabbe5e1173489e2e2e95ab7fc8b1f9.tar.bz2
packages-897095052aabbe5e1173489e2e2e95ab7fc8b1f9.tar.xz
packages-897095052aabbe5e1173489e2e2e95ab7fc8b1f9.zip
sys-fs/mac-fdisk: Apple *smh*
Diffstat (limited to 'sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch')
-rw-r--r--sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch b/sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch
new file mode 100644
index 000000000..b33487ca9
--- /dev/null
+++ b/sys-fs/mac-fdisk/files/mac-fdisk-largerthan2gb.patch
@@ -0,0 +1,14 @@
+--- a/fdisk.h
++++ b/fdisk.h
+@@ -2,6 +2,11 @@
+ fdisk.h
+ */
+
++#ifdef __linux__
++#define _FILE_OFFSET_BITS 64
++#define _LARGE_FILES
++#endif
++
+ #define SECTOR_SIZE 512
+ #define NETBSD_PARTITION 0xa5
+ #define cround(n) (((n) + display_factor * unit_flag) / display_factor)