pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xf86-video-intel-git: add a patch to fix the build on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryo%tetera.org@localhost>
Pushed By:	ryoon
Date:		Fri Nov 16 22:09:25 2018 +0900
Changeset:	1002454e27db972d83334ab57012d532f5a7d196

Modified Files:
	xf86-video-intel-git/distinfo
Added Files:
	xf86-video-intel-git/patches/patch-src_sna_sna__video.c

Log Message:
xf86-video-intel-git: add a patch to fix the build on NetBSD

bswap_32 is not available for NetBSD.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1002454e27db972d83334ab57012d532f5a7d196

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xf86-video-intel-git/distinfo                          |  1 +
 .../patches/patch-src_sna_sna__video.c                 | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/xf86-video-intel-git/distinfo b/xf86-video-intel-git/distinfo
index 3f6e1a21a6..c9a01f43b2 100644
--- a/xf86-video-intel-git/distinfo
+++ b/xf86-video-intel-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD: distinfo,v 1.1 2015/04/01 13:11:38 tnn2 Exp $
 SHA1 (patch-configure.ac) = 272b6be5a402b9366b03b87c658023335bffd6f4
+SHA1 (patch-src_sna_sna__video.c) = 3acd2600ee5de8f9d1e317a99828c5ed61236580
diff --git a/xf86-video-intel-git/patches/patch-src_sna_sna__video.c b/xf86-video-intel-git/patches/patch-src_sna_sna__video.c
new file mode 100644
index 0000000000..24b321141e
--- /dev/null
+++ b/xf86-video-intel-git/patches/patch-src_sna_sna__video.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- src/sna/sna_video.c.orig	2018-11-15 07:16:49.675406775 +0000
++++ src/sna/sna_video.c
+@@ -59,7 +59,13 @@
+ #include "intel_options.h"
+ 
+ #include <xf86xv.h>
++#if defined(__NetBSD__)
++#include <sys/types.h>
++#include <machine/bswap.h>
++#define bswap_32 bswap32
++#else
+ #include <byteswap.h>
++#endif
+ 
+ #ifdef SNA_XVMC
+ #define _SNA_XVMC_SERVER_


Home | Main Index | Thread Index | Old Index