[SCM] libav/experimental: use proper closesocket defines

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:05:04 UTC 2013


The following commit has been merged in the experimental branch:
commit 3cf9ea7f48b72f24061f4ebbe4a4db83897168fd
Author: Alex Beregszaszi <alex at rtfs.hu>
Date:   Wed Aug 8 20:25:32 2007 +0000

    use proper closesocket defines
    
    Originally committed as revision 9992 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffserver.c b/ffserver.c
index 8bf3822..b53c0ec 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -20,7 +20,7 @@
  */
 
 #include "config.h"
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
 #define closesocket close
 #endif
 #include <string.h>
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 30c069d..029223a 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -45,17 +45,10 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))
 #endif
 
-#ifdef HAVE_WINSOCK2_H
-#  define HAVE_CLOSESOCKET 1
-#endif
-
 #ifdef __BEOS__
 #  include <sys/socket.h>
 #  include <netinet/in.h>
    /* not net_server ? */
-#  if IPPROTO_TCP != 6
-#    define HAVE_CLOSESOCKET 1
-#  endif
 #  include <BeBuild.h>
    /* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */
 #  if B_BEOS_VERSION <= B_BEOS_VERSION_5
@@ -70,7 +63,7 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
 #endif
 
 /* most of the time closing a socket is just closing an fd */
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
 #define closesocket close
 #endif
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list