summaryrefslogtreecommitdiff
path: root/sysutils/gpart/patches/patch-af
blob: d7f4815563d15362745677d9fc3466061484c530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-af,v 1.1 2010/01/08 17:02:42 joerg Exp $

--- src/gm_ntfs.h.orig	2010-01-08 16:59:01.000000000 +0000
+++ src/gm_ntfs.h
@@ -29,18 +29,11 @@
 /* 'NTFS' in little endian */
 #define NTFS_SUPER_MAGIC	0x5346544E
 
-#if defined(i386) || defined(__i386__) || defined(__alpha__)
-
-/* 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;
-#endif /* NTFS_INTEGRAL_TYPES */
-#endif /* defined(i386) || defined(__i386__) || defined(__alpha__) */
-
+#include <inttypes.h>
+typedef uint8_t ntfs_u8;
+typedef uint16_t ntfs_u16;
+typedef uint32_t ntfs_u32;
+typedef int64_t ntfs_u64;
 
 /* Macros reading unsigned integers from a byte pointer */
 /* these should work for all little endian machines */