[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Support for musl when building the VM for embedded system (#304)

Xuan Sang LE notifications at github.com
Fri Nov 9 21:52:16 UTC 2018

It is indeed a dirty hack, the ```stdio.h``` is already in the include path,  but i realized that in Musl, only the definition of FILE is available in stdio.h, the struct **_IO_FILE**, however, is not publicly defined (i.e. it is not available in the public headers). That cause an error about incomplete type definition when gcc tries to compile the line:
static FILE stdoutStack[STDOUT_STACK_SZ];
So i put the explicit definition to the ```sqVirtualMachine.c```,  it works for me, but, is indeed not a good solution. What we can do is to put that definition somewhere else, and only include it in ```sqVirtualMachine.c``` if we are using Musl as lib implementation.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20181109/4948b0a3/attachment-0001.html>

More information about the Vm-dev mailing list