Originally committed as revision 9992 to svn://svn.ffmpeg.org/ffmpeg/trunk
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
#define closesocket close
#endif
#include <string.h>
#define closesocket close
#endif
#include <string.h>
# define lseek(f,p,w) _lseeki64((f), (p), (w))
#endif
# 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 ? */
#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
# include <BeBuild.h>
/* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */
# if B_BEOS_VERSION <= B_BEOS_VERSION_5
#endif
/* most of the time closing a socket is just closing an fd */
#endif
/* most of the time closing a socket is just closing an fd */
-#if HAVE_CLOSESOCKET != 1
+#ifndef HAVE_CLOSESOCKET
#define closesocket close
#endif
#define closesocket close
#endif