-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp | ||
index ff5cb8ccf..0f8d70525 100644 | ||
--- a/src/dos/drive_local.cpp | ||
+++ b/src/dos/drive_local.cpp | ||
@@ -38,6 +38,7 @@ | ||
#include <sys/locking.h> | ||
#endif | ||
#include <sys/stat.h> | ||
+#include <fcntl.h> | ||
|
||
#include "dosbox.h" | ||
#include "dos_inc.h" | ||
diff --git a/src/ints/bios_vhd.cpp b/src/ints/bios_vhd.cpp | ||
index 8972b1dad..56374b42d 100644 | ||
--- a/src/ints/bios_vhd.cpp | ||
+++ b/src/ints/bios_vhd.cpp | ||
@@ -18,6 +18,7 @@ | ||
*/ | ||
|
||
#include <assert.h> | ||
+#include <limits.h> | ||
#include <stdlib.h> | ||
#include <time.h> | ||
#include "dosbox.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Template file for 'dosbox-x' | ||
pkgname=dosbox-x | ||
version=2025.02.01 | ||
revision=1 | ||
build_style=gnu-makefile | ||
build_helper=qemu | ||
hostmakedepends="pkg-config which autoconf automake nasm" | ||
makedepends="SDL2-devel SDL2_net-devel | ||
libpcap-devel libslirp-devel fluidsynth-devel libavdevice6 | ||
libavformat6 libavcodec6 libswscale6 | ||
freetype-devel libxkbfile-devel libXrandr-devel" | ||
short_desc="Cross-platform DOS emulator based on the DOSBox project" | ||
maintainer="Mihail Ivanchev <[email protected]>" | ||
license="GPL-2.0-or-later" | ||
homepage="https://github.com/joncampbell123/dosbox-x" | ||
distfiles="https://github.com/joncampbell123/dosbox-x/archive/refs/tags/dosbox-x-v${version}.tar.gz" | ||
checksum=3a6fdfd659bb05db82bf2d850af806f666562cce9a37609fd33b59f7e4bd8fa4 | ||
conflicts="dosbox" | ||
build_options="debug" | ||
desc_option_png="Enable debugging mode" | ||
|
||
do_build() { | ||
if [ "$CROSS_BUILD" ]; then | ||
# Host argument for the main build script | ||
host="--host=${XBPS_CROSS_TRIPLET}" | ||
# For the vs/sdlnet/build-dosbox.sh subscript | ||
export opts=" --host=${XBPS_CROSS_TRIPLET}" | ||
fi | ||
|
||
if [ -z "$build_option_debug" ]; then | ||
vsed -i build-sdl2 -e 's/--enable-debug//' | ||
fi | ||
|
||
vsed -i vs/sdlnet/build-dosbox.sh -e 's/^opts=$//' | ||
|
||
# Patch the oddly specific number of build jobs. | ||
vsed -i build-sdl2 -e 's/-j3/'$makejobs'/g' | ||
vsed -i vs/sdlnet/build-dosbox.sh -e 's/-j3/'$makejobs'/g' | ||
|
||
./build-sdl2 $host | ||
} |