summaryrefslogtreecommitdiff
path: root/sysutils/gpart/files/patch-src-gm__ntfs.h
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-09-17 12:32:05 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-09-17 12:32:05 +0000
commitd7eca48b3945f69db5296aab97ec289aa81ad092 (patch)
treebc917e048e5d5ec559f84e8ea5fd51cde568a19c /sysutils/gpart/files/patch-src-gm__ntfs.h
parentFix build with clang/libc++ (diff)
- Fix build with clang/libc++
- Rename patches with accordance to porter's handbook
Notes
Notes: svn path=/head/; revision=327472
Diffstat (limited to 'sysutils/gpart/files/patch-src-gm__ntfs.h')
-rw-r--r--sysutils/gpart/files/patch-src-gm__ntfs.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/gpart/files/patch-src-gm__ntfs.h b/sysutils/gpart/files/patch-src-gm__ntfs.h
new file mode 100644
index 000000000000..af5e4ea2fa4a
--- /dev/null
+++ b/sysutils/gpart/files/patch-src-gm__ntfs.h
@@ -0,0 +1,34 @@
+--- ./src/gm_ntfs.h.orig 2001-01-29 21:33:58.000000000 +0100
++++ ./src/gm_ntfs.h 2011-03-17 01:15:54.000000000 +0100
+@@ -29,17 +29,16 @@
+ /* 'NTFS' in little endian */
+ #define NTFS_SUPER_MAGIC 0x5346544E
+
+-#if defined(i386) || defined(__i386__) || defined(__alpha__)
++#include <stdint.h>
+
+ /* unsigned integral types */
+ #ifndef NTFS_INTEGRAL_TYPES
+ #define NTFS_INTEGRAL_TYPES
+-typedef unsigned char ntfs_u8;
+-typedef unsigned short ntfs_u16;
+-typedef unsigned int ntfs_u32;
+-typedef s64_t ntfs_u64;
++typedef uint8_t ntfs_u8;
++typedef uint16_t ntfs_u16;
++typedef uint32_t ntfs_u32;
++typedef uint64_t ntfs_u64;
+ #endif /* NTFS_INTEGRAL_TYPES */
+-#endif /* defined(i386) || defined(__i386__) || defined(__alpha__) */
+
+
+ /* Macros reading unsigned integers from a byte pointer */
+@@ -53,8 +52,5 @@
+ /* Macros reading signed integers, returning int */
+ #define NTFS_GETS8(p) ((int)(*(char*)(p)))
+ #define NTFS_GETS16(p) ((int)(*(short*)(p)))
+-#define NTFS_GETS24(p) (NTFS_GETU24(p) < 0x800000 ? (int)NTFS_GETU24(p) :
+-
+-
+
+ #endif /* _GM_NTFS_H */