twinaphex/genesis-next — comment on commit bce300cfdc1d18154544905d2f8fd934de1a55f4
File:  line 0
By ekeeke:

Well, it does not seem to be the problem here, if you say the problem remains after removing include to types.h from m68k.h (right ?).
shared.h is not included by 68k core so there shouldn't be any conflict.

It seems to me more a problem of stdlib.h on linux including sys/types.h and triggering an error either because it conflicts with an existing included file (which should only be stdio.h, limits.h and macro.h) or maybe something defined in m68kcpu.h as it is included before m68kops.h . Having a deeper look in /usr/include/stdlib.h and /usr/include/sys/types.h (especially the lines mentioned) would probably
solve this mystery. The error message itself is quite intriguing and it's better to first understand what it means.

Btw, if you do a quick search on google, that error message seems to be quite common so it can give a better indication of something that have bene undefined and is needed by stdlib.h or sys/types.h