1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

use proper closesocket defines

Originally committed as revision 9992 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-08-08 20:25:32 +00:00
parent ecf97f22b3
commit 3cf9ea7f48
2 changed files with 2 additions and 9 deletions

View File

@ -20,7 +20,7 @@
*/
#include "config.h"
#if HAVE_CLOSESOCKET != 1
#ifndef HAVE_CLOSESOCKET
#define closesocket close
#endif
#include <string.h>

View File

@ -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