summaryrefslogtreecommitdiff
path: root/devel/xulrunner/patches/patch-at
blob: 8030fc64f790cc6578056a5f673ea791e44d9392 (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
$NetBSD: patch-at,v 1.2 2009/09/10 07:53:45 tnn Exp $

Treat DragonFly like FreeBSD.
Avoid silly redefinitions of standard types on NetBSD.

--- gfx/qcms/qcmstypes.h.orig	2009-08-24 17:52:41.000000000 +0200
+++ gfx/qcms/qcmstypes.h
@@ -10,6 +10,8 @@
 #if defined (__SVR4) && defined (__sun)
 /* int_types.h gets included somehow, so avoid redefining the types differently */
 #include <sys/int_types.h>
+#elif defined(__NetBSD__)
+#include <stdint.h>
 #else
 typedef PRInt8 int8_t;
 typedef PRUint8 uint8_t;
@@ -23,7 +25,7 @@ typedef PRUint64 uint64_t;
 #ifdef __OS2__
 /* OS/2's stdlib typdefs uintptr_t. So we'll just include that so we don't collide */
 #include <stdlib.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 /* FreeBSD typedefs uintptr_t in /usr/include/sys/types.h */
 #else
 typedef PRUptrdiff uintptr_t;