summaryrefslogtreecommitdiffstats
path: root/graphics/libGL/files/extra-mach64_context.h-old
diff options
context:
space:
mode:
authorkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-09-01 05:01:43 +0800
committerkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-09-01 05:01:43 +0800
commit57c4131dd8b224d1839b5d7a9a088ba4ed676c49 (patch)
treebbec00c1486142f4ec557441563af57cfc7c25ad /graphics/libGL/files/extra-mach64_context.h-old
parentcff3c7280063f6dd0a51754f7a184ddbfa45be61 (diff)
downloadxorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar.gz
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar.bz2
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar.lz
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar.xz
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.tar.zst
xorg-devel-ports-57c4131dd8b224d1839b5d7a9a088ba4ed676c49.zip
Sync with ports. This includes the final libGL/xorg-server/nvidia-driver patch.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@574 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'graphics/libGL/files/extra-mach64_context.h-old')
-rw-r--r--graphics/libGL/files/extra-mach64_context.h-old20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/libGL/files/extra-mach64_context.h-old b/graphics/libGL/files/extra-mach64_context.h-old
new file mode 100644
index 0000000..9e3b38e
--- /dev/null
+++ b/graphics/libGL/files/extra-mach64_context.h-old
@@ -0,0 +1,20 @@
+--- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2012-06-27 19:59:32.000000000 +0200
++++ src/mesa/drivers/dri/mach64/mach64_context.h 2012-06-27 20:08:30.000000000 +0200
+@@ -294,11 +294,14 @@
+ #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0)
+ #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0)
+ #else
+-#ifndef __OpenBSD__
+-#include <byteswap.h>
+-#else
++#if defined(__OpenBSD__)
+ #include <machine/endian.h>
+ #define bswap_32 bswap32
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
++#define bswap_32 bswap32
++#else
++#include <byteswap.h>
+ #endif
+
+ #define LE32_IN( x ) bswap_32( *(GLuint *)(x) )