ws2_32: fix compiling with mingw

Stefan Leichter Stefan.Leichter at camline.com
Tue Apr 29 15:43:48 CDT 2008


Hello,

cross compiling ws2_32_test.exe from current git fails with:

make: Entering directory `/usr/src/wine/wine-mingw/dlls/ws2_32/tests'
i586-mingw32msvc-gcc protocol.o sock.o    testlist.o  -o 
ws2_32_test.exe -lws2_32 -lkernel32
sock.o: In function 
`test_gethostbyname_hack':/usr/src/wine/wine-mingw/dlls/ws2_32/tests/../../../../wine-git/dlls/ws2_32/tests/sock.c:1781: 
undefined reference to `_gethostname'
collect2: ld returned 1 exit status
make: *** [ws2_32_test.exe] Fehler 1
make: Leaving directory `/usr/src/wine/wine-mingw/dlls/ws2_32/tests'

This patch fixes the problem for me
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gethostname.diff
Type: text/x-diff
Size: 459 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080429/d1436dd8/attachment.diff 


More information about the wine-patches mailing list