#! /bin/sh /usr/share/dpatch/dpatch-run ## 01_gptsync_64bit_fix.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix type issues on 64bit platforms. Causes runtime failure. @DPATCH@ diff -urNad refit-src-0.11~/gptsync/gptsync.h refit-src-0.11/gptsync/gptsync.h --- refit-src-0.11~/gptsync/gptsync.h 2007-06-12 06:44:17.000000000 +0200 +++ refit-src-0.11/gptsync/gptsync.h 2008-05-21 22:06:45.071831818 +0200 @@ -77,7 +77,7 @@ typedef unsigned int UINTN; typedef unsigned char UINT8; typedef unsigned short UINT16; -typedef unsigned long UINT32; +typedef unsigned int UINT32; typedef unsigned long long UINT64; typedef void VOID; diff -urNad refit-src-0.11~/gptsync/lib.c refit-src-0.11/gptsync/lib.c --- refit-src-0.11~/gptsync/lib.c 2007-04-05 06:58:35.000000000 +0200 +++ refit-src-0.11/gptsync/lib.c 2008-05-21 22:06:45.071831818 +0200 @@ -245,7 +245,7 @@ Print(L" No GPT partition table present!\n"); return 0; } - if (header->spec_revision != 0x00010000UL) { + if (header->spec_revision != 0x00010000) { Print(L" Warning: Unknown GPT spec revision 0x%08x\n", header->spec_revision); } if ((512 % header->entry_size) > 0 || header->entry_size > 512) {