Re: [hatari-devel] gst2ascii.c Windows build issue?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On maanantai 13 toukokuu 2013, Nicolas Pomarède wrote:
> On 12/05/2013 23:45, Christer Solskogen wrote:
> > /home/hatari/hatari-builder2/hatari/tools/debugger/gst2ascii.c:21:24:
> > fatal error: netinet/in.h: No such file or directory
>
> gst2ascii is an external tool, so it's not necessary in that case where
> we just want to test the patched hatari.exe, so I think you can ignore
> this error for now (it's possible netinet/in.h is not standard on
> Windows and Eero might need to update gst2ascii.c)

The standard place for byteswapping macros like ntohl is arpa/in.h, but
in MiNTlib (and some other systems) it's in netinet/in.h, so I used that.
This is a POSIX.1-2001 standard header.


Maybe I should add some WIN32 ifdef which uses SDL macros instead?

(I switched from those to "standard" headers so that gst2ascii tool doesn't
need extra deps like SDL when built natively on Atari with MiNTlib.  I use
that tool when building Douglas' Doom Falcon port with Sparemint GCC. :))


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/