Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
TOP ?= .
srcdir = .
abs_top_builddir = .
abs_top_srcdir = .
TOP = $(abs_top_builddir)
ATOP = $(abspath $(TOP))
-include Makefile.conf
export prefix
Expand Down Expand Up @@ -36,7 +39,7 @@ all: Makefile.conf dj64 djdev64 ncurses
@echo "Done building. You may need to run \"sudo make install\" now."
@echo "You can first run \"sudo make uninstall\" to purge the prev install."

Makefile.conf config.status: Makefile.conf.in $(abs_top_srcdir)/configure
Makefile.conf config.status: $(abs_top_srcdir)/Makefile.conf.in $(abs_top_srcdir)/configure
$(abs_top_srcdir)/configure

$(abs_top_srcdir)/configure: $(abs_top_srcdir)/configure.ac
Expand Down
9 changes: 9 additions & 0 deletions src/djdev64/stub/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,15 @@ int djstub_main(int argc, char *argv[], char *envp[],
compact_va = 1; // TODO - evaluate?
emb_ov = 1;
stubinfo.flags = ((STFLG2_EMBOV) << 8) | STFLG1_COMPACT;
#define SHM_NOEXEC 1
#define SHM_EXCL 2
#define SHM_NEW_NS 4
#define SHM_NS 8

#define SHM_FLAGS0 (SHM_NOEXEC | SHM_EXCL | SHM_NEW_NS)
#define SHM_FLAGS1 (SHM_NOEXEC | SHM_EXCL | SHM_NS)
#define SHM_FLAGS (SHM_FLAGS0 | (SHM_FLAGS1 << 8))
stubinfo.flags |= SHM_FLAGS;
nsize = dosops->_dos_seek(ifile, 0, SEEK_END);
}
done = 1;
Expand Down