Mercurial > mplayer.hg
changeset 27470:355f0fad3a3c
Fix closesocket test, patch by Serge Levin, serge.levin.spb gmail com.
author | diego |
---|---|
date | Sun, 31 Aug 2008 13:54:08 +0000 |
parents | c889ecd297c9 |
children | d9c662edc347 |
files | configure |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Aug 31 13:05:33 2008 +0000 +++ b/configure Sun Aug 31 13:54:08 2008 +0000 @@ -2899,9 +2899,9 @@ for header in "arpa/inet.h" "winsock2.h" ; do cat > $TMPC << EOF #include <$header> -int main(void) { closesocket(); return 0; } -EOF - cc_check && _closesocket=yes && break +int main(void) { closesocket(~0); return 0; } +EOF + cc_check $_ld_sock && _closesocket=yes && break done if test "$_closesocket" = yes ; then _def_closesocket='#define HAVE_CLOSESOCKET 1'