summaryrefslogtreecommitdiff
path: root/sysutils/extipl/patches/patch-extipl.h
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-07-21 21:08:03 +0000
committermaya <maya@pkgsrc.org>2018-07-21 21:08:03 +0000
commitc73eeecb21dd8b2b82ebba40cccfac892c50066d (patch)
tree31af0d88b033d6ee43ae371696323e36d76a6544 /sysutils/extipl/patches/patch-extipl.h
parent3353dd93a3b7d0213f1981bfd9c0a514cf16e031 (diff)
downloadpkgsrc-c73eeecb21dd8b2b82ebba40cccfac892c50066d.tar.gz
extipl: 64bit support, from Kimura Fuyuki in PR pkg/35955.
Diffstat (limited to 'sysutils/extipl/patches/patch-extipl.h')
-rw-r--r--sysutils/extipl/patches/patch-extipl.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/extipl/patches/patch-extipl.h b/sysutils/extipl/patches/patch-extipl.h
new file mode 100644
index 00000000000..081eb091648
--- /dev/null
+++ b/sysutils/extipl/patches/patch-extipl.h
@@ -0,0 +1,29 @@
+$NetBSD: patch-extipl.h,v 1.1 2018/07/21 21:08:03 maya Exp $
+
+64bit support
+
+--- extipl.h.orig 2002-03-25 22:48:52.000000000 +0900
++++ extipl.h
+@@ -5,4 +5,6 @@
+ */
+
++#include <stdint.h>
++
+ #define VERSION "5.04"
+ #define DATE "2002/03/26"
+@@ -40,5 +42,5 @@
+
+ typedef unsigned char byte;
+-typedef unsigned long long ul_long;
++typedef uint64_t ul_long;
+
+ typedef struct hdadr_s {
+@@ -53,6 +55,6 @@ typedef struct partition_s {
+ byte sysind;
+ hdadr_s end_chs;
+- unsigned long sector_offset;
+- unsigned long nr_sector;
++ uint32_t sector_offset;
++ uint32_t nr_sector;
+ } partition_s;
+