summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emu/port/fns.h2
-rw-r--r--emu/port/main.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/emu/port/fns.h b/emu/port/fns.h
index 6a0809c0..36d341b7 100644
--- a/emu/port/fns.h
+++ b/emu/port/fns.h
@@ -20,7 +20,7 @@ Dir* chandirstat(Chan*);
void cinit(void);
char* clipread(void);
int clipwrite(char*);
-void (*coherence)(void);
+extern void (*coherence)(void);
void copen(Chan*);
void cmderror(Cmdbuf*, char*);
Block* concatblock(Block*);
diff --git a/emu/port/main.c b/emu/port/main.c
index 158f6b03..da1aa432 100644
--- a/emu/port/main.c
+++ b/emu/port/main.c
@@ -27,6 +27,10 @@ extern int mflag;
ulong displaychan;
char *cputype;
+/* For dynamic linking init/fini code that needs malloc */
+void (*coherence)(void) = nofence;
+
+
static void
usage(void)
{