summaryrefslogtreecommitdiff
path: root/games/jfsw/files/patch-jfbuild-kenbuild-bstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/jfsw/files/patch-jfbuild-kenbuild-bstub.c')
-rw-r--r--games/jfsw/files/patch-jfbuild-kenbuild-bstub.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/jfsw/files/patch-jfbuild-kenbuild-bstub.c b/games/jfsw/files/patch-jfbuild-kenbuild-bstub.c
new file mode 100644
index 000000000000..fba8d5860747
--- /dev/null
+++ b/games/jfsw/files/patch-jfbuild-kenbuild-bstub.c
@@ -0,0 +1,17 @@
+Rename PREFIX to DATADIR as its only purpose is to access data files
+(and avoid conflict with FreeBSD PREFIX, which has another meaning)
+
+--- jfbuild/kenbuild/bstub.c.orig 2020-09-22 22:08:35 UTC
++++ jfbuild/kenbuild/bstub.c
+@@ -73,9 +73,9 @@ int ExtInit(void)
+ getch();
+ */
+
+-#if defined(PREFIX)
++#if defined(DATADIR)
+ {
+- const char *prefixdir = PREFIX;
++ const char *prefixdir = DATADIR;
+ if (prefixdir && prefixdir[0]) {
+ addsearchpath(prefixdir);
+ }