[FFmpeg-cvslog] r9992 - in trunk: ffserver.c libavformat/os_support.h

alex subversion
Wed Aug 8 22:25:32 CEST 2007


Author: alex
Date: Wed Aug  8 22:25:32 2007
New Revision: 9992

Log:
use proper closesocket defines

Modified:
   trunk/ffserver.c
   trunk/libavformat/os_support.h

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Wed Aug  8 22:25:32 2007
@@ -20,7 +20,7 @@
  */
 
 #include "config.h"
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
 #define closesocket close
 #endif
 #include <string.h>

Modified: trunk/libavformat/os_support.h
==============================================================================
--- trunk/libavformat/os_support.h	(original)
+++ trunk/libavformat/os_support.h	Wed Aug  8 22:25:32 2007
@@ -45,17 +45,10 @@ __declspec(dllimport) void __stdcall Sle
 #  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 Sle
 #endif
 
 /* most of the time closing a socket is just closing an fd */
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
 #define closesocket close
 #endif
 




More information about the ffmpeg-cvslog mailing list