Bug 487754 - Problems building qcms on FreeBSD. r=jrmuizel
authorMarco Perez <bugmail@millibyte.net>
Tue, 14 Apr 2009 11:08:23 -0400
changeset 27315 ed90488b4d79fd58297b19647aa46f1193ea6a75
parent 27314 68d9acc704912c6554c4fd8d0ed4c1303bafc171
child 27316 6a928bad6136b28a14c81523589acc35022da6ee
push id6490
push userjnightingale@mozilla.com
push dateTue, 14 Apr 2009 15:09:11 +0000
treeherdermozilla-central@ed90488b4d79 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs487754
milestone1.9.2a1pre
Bug 487754 - Problems building qcms on FreeBSD. r=jrmuizel
gfx/qcms/qcmstypes.h
--- a/gfx/qcms/qcmstypes.h
+++ b/gfx/qcms/qcmstypes.h
@@ -12,16 +12,18 @@ typedef PRUint16 uint16_t;
 typedef PRInt32 int32_t;
 typedef PRUint32 uint32_t;
 typedef PRInt64 int64_t;
 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__)
+/* FreeBSD typedefs uintptr_t in /usr/include/sys/types.h */
 #else
 typedef PRUptrdiff uintptr_t;
 #endif
 
 #else
 
 #if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || defined (_sgi) || defined (__sun) || defined (sun) || defined (__digital__)
 #  include <inttypes.h>