[Vm-dev] getReturnAddress fix

stes@PANDORA.BE stes at telenet.be
Fri Jan 8 07:11:38 UTC 2021


Hello, the current GIT sources have an issue in the spur64src/vm/cogit.c file.

The cogit.c file includes cogitX64SysV.c for me.

The following fixes compilation for me:

bash-4.4$ git diff
diff --git a/spur64src/vm/cogitX64SysV.c b/spur64src/vm/cogitX64SysV.c
index 3e9ed64be..2c18e045f 100644
--- a/spur64src/vm/cogitX64SysV.c
+++ b/spur64src/vm/cogitX64SysV.c
@@ -11,6 +11,7 @@ char *__cogitBuildInfo = __buildInfo;
 #include <stddef.h>
 #include "sqConfig.h"
 #include "sqMemoryAccess.h"
+#include "sqPlatformSpecific.h"
 #include "sqCogStackAlignment.h"
 #include "dispdbg.h"
 #include "cogmethod.h"


So I think there is a missing #include of sqPlatformSpecific.h.

But there may be alternative solutions...


More information about the Vm-dev mailing list