File: system-physfs.patch

package info (click to toggle)
dosbox-x 2025.10.07%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,184 kB
  • sloc: cpp: 339,023; ansic: 165,252; sh: 1,455; makefile: 963; perl: 385; python: 106; asm: 57
file content (47 lines) | stat: -rw-r--r-- 1,646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Build with system physfs
Author: Stephen Kitt <skitt@debian.org>
Forwarded: not-needed

--- a/src/dos/drive_physfs.cpp
+++ b/src/dos/drive_physfs.cpp
@@ -27,28 +27,8 @@
 #include <sys/statvfs.h>
 #endif
 
-#include "../libs/physfs/physfs.h"
-#include "../libs/physfs/physfs.c"
-#include "../libs/physfs/physfs_archiver_7z.c"
-#include "../libs/physfs/physfs_archiver_dir.c"
-#include "../libs/physfs/physfs_archiver_grp.c"
-#include "../libs/physfs/physfs_archiver_hog.c"
-#include "../libs/physfs/physfs_archiver_iso9660.c"
-#include "../libs/physfs/physfs_archiver_mvl.c"
-#include "../libs/physfs/physfs_archiver_qpak.c"
-#include "../libs/physfs/physfs_archiver_slb.c"
-#include "../libs/physfs/physfs_archiver_unpacked.c"
-#include "../libs/physfs/physfs_archiver_vdf.c"
-#include "../libs/physfs/physfs_archiver_wad.c"
-#include "../libs/physfs/physfs_archiver_zip.c"
-#include "../libs/physfs/physfs_byteorder.c"
-#include "../libs/physfs/physfs_platform_posix.c"
-#include "../libs/physfs/physfs_platform_unix.c"
-#include "../libs/physfs/physfs_platform_windows.c"
-#include "../libs/physfs/physfs_platform_winrt.cpp"
-#include "../libs/physfs/physfs_platform_haiku.cpp"
-#include "../libs/physfs/physfs_platform_os2.c"
-#include "../libs/physfs/physfs_unicode.c"
+#include <physfs.h>
+#define BAIL_IF_ERRPASS(c, r) do { if (c) { return r; } } while (0)
 
 extern int lfn_filefind_handle;
 extern uint16_t ldid[256];
--- a/configure.ac
+++ b/configure.ac
@@ -1381,6 +1381,7 @@
 
 LIBS="$LIBS -lopusfile -lspeexdsp"
 LIBS="$LIBS -lminizip"
+LIBS="$LIBS -lphysfs"
 
 AC_CONFIG_FILES([ 
 Makefile