pkgsrc-WIP-changes archive

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

mame: define _NETBSD_SOURCE so that c++ finds LLONG_MAX in lua part of build



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Fri Mar 31 17:40:10 2023 +0200
Changeset:	6a53c4b3d49ece9e394153ff1bab700c3e5cbb05

Modified Files:
	mame/Makefile

Log Message:
mame: define _NETBSD_SOURCE so that c++ finds LLONG_MAX in lua part of build

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

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

diffstat:
 mame/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diffs:
diff --git a/mame/Makefile b/mame/Makefile
index 326934c8aa..d965e9911d 100644
--- a/mame/Makefile
+++ b/mame/Makefile
@@ -47,6 +47,9 @@ MAKE_ENV+=	NOWERROR=1
 # on Darwin, avoid SDL2.framework
 MAKE_ENV+=	USE_LIBSDL=1
 
+# for c++ to get LLONG_MAX for luaconf.h
+CPPFLAGS.NetBSD+=	-D_NETBSD_SOURCE
+
 # use pkgsrc libraries
 # boost-header's asio.hpp is not compatible as of mame-0.251/boost 1.81.0
 #MAKE_ENV+=	USE_SYSTEM_LIB_ASIO=1


Home | Main Index | Thread Index | Old Index