#include <sys/types.h>

void (*RTHeapRep_Fault)(char*);
void (*RTCSRC_FinishVM)();

/*
 * Modula-3 compilation units are always compiled PIC.  This causes
 * the a.out linker to complain that there is no reference to
 * _DYNAMIC if the program is linked with "-static".  Provide a
 * weak reference to it here so that static linking will work.
 *
 * This has nothing to do with the heap, so it doesn't really belong
 * here.  But it needs to be someplace that is guaranteed to be pulled
 * into every executable.
 */
#pragma weak _DYNAMIC
extern int _DYNAMIC;
static int *i __unused = &_DYNAMIC;
