From a2345d72dd69725b312ece9c9da0384051227585 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Tue, 30 May 2006 07:02:51 +0000 Subject: [PATCH] - Fix build on 4.x PR: 97937 Submitted by: Shaun Amott Approved by: maintainer --- emulators/dosbox/Makefile | 2 ++ .../dosbox/files/patch-src::cpu::core_dyn_x86.cpp | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 emulators/dosbox/files/patch-src::cpu::core_dyn_x86.cpp diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile index 81ba8ee2b279..dea4fce93db6 100644 --- a/emulators/dosbox/Makefile +++ b/emulators/dosbox/Makefile @@ -27,6 +27,8 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS+= --enable-core-inline +USE_GCC= 3.2+ + post-patch: @${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \ ${WRKSRC}/docs/dosbox.1 diff --git a/emulators/dosbox/files/patch-src::cpu::core_dyn_x86.cpp b/emulators/dosbox/files/patch-src::cpu::core_dyn_x86.cpp new file mode 100644 index 000000000000..9d276f8e9cad --- /dev/null +++ b/emulators/dosbox/files/patch-src::cpu::core_dyn_x86.cpp @@ -0,0 +1,11 @@ +--- src/cpu/core_dyn_x86.cpp.orig Thu Feb 9 12:32:52 2006 ++++ src/cpu/core_dyn_x86.cpp Thu May 25 22:58:53 2006 +@@ -22,6 +22,8 @@ + + #define CHECKED_MEMORY_ACCESS + ++#include ++ + #include + #include + #include