pkgsrc-WIP-changes archive

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

libretro-np2kai: Fix build on NetBSD (also it does more than build, I tested Touhou.)



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Mon Nov 27 22:09:54 2017 +0000
Changeset:	a274f9c084526a51a5bb91ad64324594ae653ed0

Modified Files:
	libretro-np2kai/distinfo
Added Files:
	libretro-np2kai/patches/patch-sound_mame_driver.h

Log Message:
libretro-np2kai: Fix build on NetBSD (also it does more than build,
I tested Touhou.)

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

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

diffstat:
 libretro-np2kai/distinfo                          |  1 +
 libretro-np2kai/patches/patch-sound_mame_driver.h | 25 +++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diffs:
diff --git a/libretro-np2kai/distinfo b/libretro-np2kai/distinfo
index 9e352ccef4..de01c342f5 100644
--- a/libretro-np2kai/distinfo
+++ b/libretro-np2kai/distinfo
@@ -4,3 +4,4 @@ SHA1 (libretro-np2kai-0.14.tar.gz) = c95b625a5575eae5f2d87c8b7617a24ec07965b4
 RMD160 (libretro-np2kai-0.14.tar.gz) = f604aaa6da44ec16af3dd93a983f573cbe1d3e91
 SHA512 (libretro-np2kai-0.14.tar.gz) = cb15ebbe07ea483be48b3725663f05d0084d6661ae08b7669329d3511fe2a30a115532166716393594b5916d9e84323ca2a42bc098cacc350b9428d2795a6273
 Size (libretro-np2kai-0.14.tar.gz) = 1932048 bytes
+SHA1 (patch-sound_mame_driver.h) = e4ccfe7482bae5fba2d911e355578a6779af7242
diff --git a/libretro-np2kai/patches/patch-sound_mame_driver.h b/libretro-np2kai/patches/patch-sound_mame_driver.h
new file mode 100644
index 0000000000..769e043535
--- /dev/null
+++ b/libretro-np2kai/patches/patch-sound_mame_driver.h
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Fix build on NetBSD (symbol collisions...)
+
+--- sound/mame/driver.h.orig	2017-10-21 10:00:34.000000000 +0000
++++ sound/mame/driver.h
+@@ -8,17 +8,7 @@
+ #define HAS_Y8950  1
+ #define HAS_YMF262 1
+ 
+-#if defined(_MSC_VER)
+-#pragma warning(disable: 4244)
+-#pragma warning(disable: 4245)
+-#define INLINE __inline static
+-#elif defined(__BORLANDC__)
+-#define INLINE __inline
+-#elif defined(__GNUC__)
+-#define INLINE __inline__
+-#else
+-#define INLINE static
+-#endif
++#define INLINE static inline
+ 
+ #define logerror(x,y,z)
+ //typedef signed int stream_sample_t;


Home | Main Index | Thread Index | Old Index