[FFmpeg-devel] [PATCH] Fix compilation on mingw - dependancy on select and winsock

GizmoSDK gizmo_video
Tue Nov 20 22:36:11 CET 2007


When compiling without network support, the winsock version of select  
is missing.

This patch fixes this...

Index: configure
===================================================================
--- configure	(revision 11041)
+++ configure	(working copy)
@@ -1625,14 +1625,14 @@
  ##########################################
  # Network check

-if enabled network; then
-    # Prefer arpa/inet.h over winsock2
-    if check_header arpa/inet.h ; then
-        check_func closesocket
-    elif check_header winsock2.h ; then
+# Prefer arpa/inet.h over winsock2
+if check_header arpa/inet.h ; then
+    check_func closesocket
+elif check_header winsock2.h ; then
+    if enabled network; then
          network_extralibs="-lws2_32"
-        check_func2 winsock2.h closesocket
      fi
+    check_func2 winsock2.h closesocket
  fi

  ##########################################


/Anders Mod?n



More information about the ffmpeg-devel mailing list