diff options
| author | Valery Ushakov <uwe@stderr.spb.ru> | 2017-01-12 02:19:49 +0300 |
|---|---|---|
| committer | Valery Ushakov <uwe@stderr.spb.ru> | 2017-01-12 02:19:49 +0300 |
| commit | 100d67d0f493a2a80073bc98a9e53c5e38a8e337 (patch) | |
| tree | eaf7d658a0c9d636fe9c7af521a745e24999a2e6 /emu/NetBSD/os.c | |
| parent | 546783184a373a2dd59afef3affe029a6aedd701 (diff) | |
Revert dbaf2f1a92f6 and instead move initialization of "coherence" to
emu/NetBSD/os.c
As explained in inferno-os issue 335:
> The definition of coherence deliberately takes advantage of a C rule
> to avoid anyone having to change an existing fork of emu (eg, for a
> new platform), to account for the arrival of "coherence". If a
> given port doesn't define it, it will be nil and main will fill it
> in. If as on Windows or now NetBSD, it needs to be defined from the
> start, the os.c for that platform should do it, but still no other
> platforms need source changes.
Diffstat (limited to 'emu/NetBSD/os.c')
| -rw-r--r-- | emu/NetBSD/os.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/emu/NetBSD/os.c b/emu/NetBSD/os.c index fa582a16..e299a188 100644 --- a/emu/NetBSD/os.c +++ b/emu/NetBSD/os.c @@ -13,6 +13,10 @@ #include "fns.h" #include "error.h" +/* For dynamic linking init/fini code that needs malloc */ +void (*coherence)(void) = nofence; + + enum { DELETE = 0x7f, |
