On NetBSD if_type is defined as a macro in /usr/include/net/if.h.

Undefine it to avoid a conflict.
This commit is contained in:
Bang Jun-Young 2001-05-09 19:45:30 +00:00 committed by Alexandre Julliard
parent 284a78f5cc
commit 3f7e282762
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@
#endif
#include <errno.h>
#ifdef __NetBSD__
#undef if_type
#endif
/* FIXME: The rest of the socket() cdecl<->stdapi stack corruption problem
discussed above. */