Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl2_net fails to build: unknown type name 'ADDRESS_FAMILY' #550

Closed
uwehermann opened this issue Oct 30, 2014 · 4 comments
Closed

sdl2_net fails to build: unknown type name 'ADDRESS_FAMILY' #550

uwehermann opened this issue Oct 30, 2014 · 4 comments

Comments

@uwehermann
Copy link
Contributor

libtool: compile:  i686-w64-mingw32.shared-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_net\" -DVERSION=\"2.0.0\" -I. -g -O2 -I/home/uwe/mxe-git-buildall/usr/i686-w64-mingw32.shared/include/SDL2 -Dmain=SDL_main -MT SDLnet.lo -MD -MP -MF .deps/SDLnet.Tpo -c SDLnet.c  -DDLL_EXPORT -DPIC -o .libs/SDLnet.o
In file included from /home/uwe/mxe-git-buildall/usr/i686-w64-mingw32.shared/include/netioapi.h:10:0,
                 from /home/uwe/mxe-git-buildall/usr/i686-w64-mingw32.shared/include/iphlpapi.h:16,
                 from SDLnetsys.h:46,
                 from SDLnetTCP.c:24:
/home/uwe/mxe-git-buildall/usr/i686-w64-mingw32.shared/include/ws2ipdef.h:71:3: error: unknown type name 'ADDRESS_FAMILY'
   ADDRESS_FAMILY si_family;
   ^

Full log:
http://pastebin.com/XU4BT43q

@uwehermann
Copy link
Contributor Author

Builds fine now, thanks.

@mgerhardy
Copy link
Member

I've already reported this bug upstream

@mgerhardy
Copy link
Member

@TimothyGu
Copy link
Member

@mgerhardy I would prefer my patch to be applied as in your patch the following to lines are duplicated:

+#include <winsock2.h>
+#include <ws2tcpip.h>

They are already there two lines up, so it would be cleaner to just merge the conditions:

-#ifdef _WIN64
+#if defined(_WIN64) || defined(__MINGW64_VERSION_MAJOR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants