changeset 2323:43b803972ffd libavformat

use proper closesocket defines
author alex
date Wed, 08 Aug 2007 20:25:32 +0000
parents fb72d949bae3
children 919efc8760a0
files os_support.h
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.h	Wed Aug 08 19:18:10 2007 +0000
+++ b/os_support.h	Wed Aug 08 20:25:32 2007 +0000
@@ -45,17 +45,10 @@
 #  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 @@
 #endif
 
 /* most of the time closing a socket is just closing an fd */
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
 #define closesocket close
 #endif