summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-05-18 05:57:10 +0000
committerobache <obache@pkgsrc.org>2013-05-18 05:57:10 +0000
commite2e590754486de237a9469308b3c3a69bbcfc64d (patch)
tree7187287274d705030bf6eb32be39244e3e9a82ec
parent54a047785b200d3137ebe19d82955acca8adcefc (diff)
downloadpkgsrc-e2e590754486de237a9469308b3c3a69bbcfc64d.tar.gz
Fixes build on big endian FreeBSD and DragonFly.
related to PR pkg/47821.
-rw-r--r--graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h b/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
index f363c1c293d..836fcf4ccc5 100644
--- a/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
+++ b/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_mesa_drivers_dri_mach64_mach64__context.h,v 1.1 2013/05/16 05:22:02 richard Exp $
+$NetBSD: patch-src_mesa_drivers_dri_mach64_mach64__context.h,v 1.2 2013/05/18 05:57:10 obache Exp $
--- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2011-10-15 00:43:58.000000000 +0000
+++ src/mesa/drivers/dri/mach64/mach64_context.h
@@ -11,3 +11,13 @@ $NetBSD: patch-src_mesa_drivers_dri_mach64_mach64__context.h,v 1.1 2013/05/16 05
#include "mach64_reg.h"
#include "texmem.h"
+@@ -298,6 +298,9 @@ extern GLboolean mach64UnbindContext( __
+ #if defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <machine/endian.h>
+ #define bswap_32 bswap32
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
++#include <sys/endian.h>
++#define bswap_32 bswap32
+ #else
+ #include <byteswap.h>
+ #endif