diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-30 09:42:37 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-30 09:42:37 +0000 |
commit | 32879d8d6107c33117b797fc1d7d95f4f065539a (patch) | |
tree | 0732209c07700b12b48351f99e2a60ae7a9ce3be | |
parent | 2871b0b8744d7c6c7948bded01cd4f233e0e8b55 (diff) | |
download | mpv-32879d8d6107c33117b797fc1d7d95f4f065539a.tar.bz2 mpv-32879d8d6107c33117b797fc1d7d95f4f065539a.tar.xz |
Add proper check for socklen_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27369 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -2864,6 +2864,21 @@ if test "$_use_aton" = yes; then _def_use_aton='#define USE_ATON 1' fi + +echocheck "socklen_t" +cat > $TMPC << EOF +#include <sys/socket.h> +int main(void) { socklen_t v = 0; return v; } +EOF +cc_check && _socklen_t=yes +if test "$_socklen_t" = yes ; then + _def_socklen_t='#define HAVE_SOCKLEN_T 1' +else + _def_socklen_t='#undef HAVE_SOCKLEN_T' +fi +echores "$_socklen_t" + + echocheck "network" # FIXME network check if test "$_network" = yes ; then @@ -8232,8 +8247,6 @@ $_def_quicktime $_def_win32_loader /* FFmpeg */ -#define HAVE_SOCKLEN_T 1 - /* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */ $_def_libpostproc $_def_libpostproc_a @@ -8575,6 +8588,12 @@ $_def_winsock2 /* define this to use inet_aton() instead of inet_pton() */ $_def_use_aton +/* socklen_t support */ +$_def_socklen_t +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + /* enables / disables cdparanoia support */ $_def_cdparanoia $_def_cddb |