[coreboot] romcc changes for mingw32 environment
peter at stuge.se
Fri Nov 20 22:26:30 CET 2009
Patrick Georgi wrote:
> 2. romcc uses open/read/close to read included files. For some
> reason, read always returns 0 bytes, so that's an endless loop. I
> kept the open/stat/close part, and replaced the read with fread
> (and fopen/fclose to support it).
> This might be solved in a cleaner way.
Maybe you can use fdopen() to tur the fd into FILE * once size is
When done, just fclose() is sufficient, close() is not needed (and
will fail, since fclose() on fdopen()ed fds will close()). Confused
More information about the coreboot