mirror of https://github.com/mpv-player/mpv
Convert HAVE_CLOSESOCKET and HAVE_SOCKLEN_T into 0/1 definitions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28434 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
85eac18b0a
commit
be5f5c7046
|
@ -2982,7 +2982,7 @@ done
|
||||||
if test "$_socklen_t" = yes ; then
|
if test "$_socklen_t" = yes ; then
|
||||||
_def_socklen_t='#define HAVE_SOCKLEN_T 1'
|
_def_socklen_t='#define HAVE_SOCKLEN_T 1'
|
||||||
else
|
else
|
||||||
_def_socklen_t='#undef HAVE_SOCKLEN_T'
|
_def_socklen_t='#define HAVE_SOCKLEN_T 0'
|
||||||
fi
|
fi
|
||||||
echores "$_socklen_t"
|
echores "$_socklen_t"
|
||||||
|
|
||||||
|
@ -2997,7 +2997,7 @@ cc_check $_ld_sock && _closesocket=yes
|
||||||
if test "$_closesocket" = yes ; then
|
if test "$_closesocket" = yes ; then
|
||||||
_def_closesocket='#define HAVE_CLOSESOCKET 1'
|
_def_closesocket='#define HAVE_CLOSESOCKET 1'
|
||||||
else
|
else
|
||||||
_def_closesocket='#undef HAVE_CLOSESOCKET'
|
_def_closesocket='#define HAVE_CLOSESOCKET 0'
|
||||||
fi
|
fi
|
||||||
echores "$_closesocket"
|
echores "$_closesocket"
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
#include "http.h"
|
#include "http.h"
|
||||||
|
|
||||||
#ifndef HAVE_CLOSESOCKET
|
#if !HAVE_CLOSESOCKET
|
||||||
#define closesocket close
|
#define closesocket close
|
||||||
#endif
|
#endif
|
||||||
#ifndef HAVE_SOCKLEN_T
|
#if !HAVE_SOCKLEN_T
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue