diff options
author | obache <obache@pkgsrc.org> | 2013-05-18 05:57:10 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-05-18 05:57:10 +0000 |
commit | 0fe99144bf2e34ce24657bb504010add1aaa8677 (patch) | |
tree | 7187287274d705030bf6eb32be39244e3e9a82ec /graphics | |
parent | c531dcbaa28ddd30a58f69eb5de1d3adbc7235c1 (diff) | |
download | pkgsrc-0fe99144bf2e34ce24657bb504010add1aaa8677.tar.gz |
Fixes build on big endian FreeBSD and DragonFly.
related to PR pkg/47821.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h | 12 |
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 |