File: system-physfs.patch

package info (click to toggle)
dosbox-x 2025.02.01%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 44,068 kB
  • sloc: cpp: 337,267; ansic: 164,765; sh: 1,337; makefile: 956; perl: 385; python: 106; asm: 57
file content (46 lines) | stat: -rw-r--r-- 1,596 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
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,27 +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_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
@@ -1329,6 +1329,7 @@
 
 LIBS="$LIBS -lopusfile -lspeexdsp"
 LIBS="$LIBS -lminizip"
+LIBS="$LIBS -lphysfs"
 
 AC_CONFIG_FILES([ 
 Makefile