diff options
author | joerg <joerg@pkgsrc.org> | 2008-03-11 14:36:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-03-11 14:36:13 +0000 |
commit | cdd850c1f00a19423d132d5c8e7ba34718e81d21 (patch) | |
tree | 48e49c84ee69662ce203a1b9f1739abcb7f7e5b4 /x11 | |
parent | 925c568119125cef13c05a6a3f4e8c4f8edbf1b6 (diff) | |
download | pkgsrc-cdd850c1f00a19423d132d5c8e7ba34718e81d21.tar.gz |
P: Compilation fails due to redefinition of uint32_t and friends.
A: Why don't you just use inttypes.h?
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xf86-video-radeonhd/distinfo | 3 | ||||
-rw-r--r-- | x11/xf86-video-radeonhd/patches/patch-aa | 39 |
2 files changed, 41 insertions, 1 deletions
diff --git a/x11/xf86-video-radeonhd/distinfo b/x11/xf86-video-radeonhd/distinfo index af65e5ec811..17b3aa555d2 100644 --- a/x11/xf86-video-radeonhd/distinfo +++ b/x11/xf86-video-radeonhd/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2007/12/21 16:57:13 joerg Exp $ +$NetBSD: distinfo,v 1.4 2008/03/11 14:36:13 joerg Exp $ SHA1 (xf86-video-radeonhd-1.1.0.tar.bz2) = 5553bbceafd80714c03a6c60479bd9bc9eacb63e RMD160 (xf86-video-radeonhd-1.1.0.tar.bz2) = 254fc96418c5b91b1e3bf2d4455153f705f8316e Size (xf86-video-radeonhd-1.1.0.tar.bz2) = 446297 bytes +SHA1 (patch-aa) = 1c25ceaf16b69faf14dc04d4145bb6be2466bfe7 diff --git a/x11/xf86-video-radeonhd/patches/patch-aa b/x11/xf86-video-radeonhd/patches/patch-aa new file mode 100644 index 00000000000..18436247da4 --- /dev/null +++ b/x11/xf86-video-radeonhd/patches/patch-aa @@ -0,0 +1,39 @@ +$NetBSD: patch-aa,v 1.4 2008/03/11 14:36:13 joerg Exp $ + +--- src/AtomBios/includes/CD_Common_Types.h.orig 2008-03-11 15:17:08.000000000 +0100 ++++ src/AtomBios/includes/CD_Common_Types.h +@@ -37,32 +37,8 @@ Revision History: + #ifndef _COMMON_TYPES_H_ + #define _COMMON_TYPES_H_ + +- #ifndef LINUX +- #if _MSC_EXTENSIONS +- +- // +- // use Microsoft* C complier dependent interger width types +- // +- // typedef unsigned __int64 uint64_t; +- // typedef __int64 int64_t; +- typedef unsigned __int32 uint32_t; +- typedef __int32 int32_t; +-#elif defined (__linux__) || defined (__NetBSD__) || defined(__sun) || defined(__OpenBSD__) || defined (__FreeBSD__) +- typedef unsigned int uint32_t; +- typedef int int32_t; +- #else +- typedef unsigned long uint32_t; +- typedef signed long int32_t; +- #endif +- typedef unsigned char uint8_t; +-#if (defined(__sun) && defined(_CHAR_IS_SIGNED)) +- typedef char int8_t; +-#else +- typedef signed char int8_t; +-#endif +- typedef unsigned short uint16_t; +- typedef signed short int16_t; +- #endif ++#include <inttypes.h> ++ + #ifndef UEFI_BUILD + typedef signed int intn_t; + typedef unsigned int uintn_t; |