GNOME Bugzilla – Bug 597539
[gststrpconnection.c] 'close' is not defined in Microsoft's CRT
Last modified: 2009-10-06 21:35:28 UTC
Fixed using _close: #ifndef WINVER #define WINVER 0x0501 #endif +#ifdef _MSC_VER + #include <io.h> + #define close _close +#endif #include <winsock2.h> #include <ws2tcpip.h>
or even better: diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index e418893..136d40a 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -446,7 +446,7 @@ accept_failed: getnameinfo_failed: wrong_family: { - close (fd); + CLOSE_SOCKET (fd); return GST_RTSP_ERROR; } } Will push this after freeze.
commit 730eead9a987b6f94ff07337b247da3c26ad0280 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Tue Oct 6 19:17:49 2009 +0200 rtsp: use CLOSE_SOCKET() instead of close() Use CLOSE_SOCKET instead of directly calling close() because it does the right thing for windows. Fixes #597539