From aaa7e62171e6af759152a89df82744a4df939c66 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 8 Jan 2010 17:02:42 +0000 Subject: Improve portability by using standard types. --- sysutils/gpart/patches/patch-af | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sysutils/gpart/patches/patch-af (limited to 'sysutils/gpart/patches') diff --git a/sysutils/gpart/patches/patch-af b/sysutils/gpart/patches/patch-af new file mode 100644 index 00000000000..d7f4815563d --- /dev/null +++ b/sysutils/gpart/patches/patch-af @@ -0,0 +1,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 ++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 */ -- cgit v1.2.3