Commit fc692123 authored by alex's avatar alex

use proper closesocket defines

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9992 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2aa60e41
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
#include "config.h" #include "config.h"
#if HAVE_CLOSESOCKET != 1 #ifndef HAVE_CLOSESOCKET
#define closesocket close #define closesocket close
#endif #endif
#include <string.h> #include <string.h>
......
...@@ -45,17 +45,10 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds); ...@@ -45,17 +45,10 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
# define lseek(f,p,w) _lseeki64((f), (p), (w)) # define lseek(f,p,w) _lseeki64((f), (p), (w))
#endif #endif
#ifdef HAVE_WINSOCK2_H
# define HAVE_CLOSESOCKET 1
#endif
#ifdef __BEOS__ #ifdef __BEOS__
# include <sys/socket.h> # include <sys/socket.h>
# include <netinet/in.h> # include <netinet/in.h>
/* not net_server ? */ /* not net_server ? */
# if IPPROTO_TCP != 6
# define HAVE_CLOSESOCKET 1
# endif
# include <BeBuild.h> # include <BeBuild.h>
/* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */ /* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */
# if B_BEOS_VERSION <= B_BEOS_VERSION_5 # if B_BEOS_VERSION <= B_BEOS_VERSION_5
...@@ -70,7 +63,7 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds); ...@@ -70,7 +63,7 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
#endif #endif
/* most of the time closing a socket is just closing an fd */ /* most of the time closing a socket is just closing an fd */
#if HAVE_CLOSESOCKET != 1 #ifndef HAVE_CLOSESOCKET
#define closesocket close #define closesocket close
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment