# HG changeset patch # User Jonathan Schleifer # Date 1190923835 -7200 # Node ID 7f9d2bb964412e7decfde8af82d6a2dedf33c4db # Parent 81b524aa7fcd023eeaf3b3a311b5d26555ff2a0e# Parent b37cea7ef4a9b0f330673eae777b85d877084a35 Automated merge with ssh://sidhe.atheme.org//hg/audacious-plugins diff -r 81b524aa7fcd -r 7f9d2bb96441 configure.ac --- a/configure.ac Thu Sep 27 22:09:51 2007 +0200 +++ b/configure.ac Thu Sep 27 22:10:35 2007 +0200 @@ -1285,7 +1285,7 @@ [have_neon=no]) if test "x$have_neon" = "xyes"; then - PKG_CHECK_MODULES(NEON, [neon >= 0.27], [TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS neon" ], [have_neon="no"]) + PKG_CHECK_MODULES(NEON, [neon >= 0.26], [TRANSPORT_PLUGINS="$TRANSPORT_PLUGINS neon" ], [have_neon="no"]) NEON_LIBS=`pkg-config --libs neon` NEON_CFLAGS=`pkg-config --cflags neon` else diff -r 81b524aa7fcd -r 7f9d2bb96441 src/neon/neon.c --- a/src/neon/neon.c Thu Sep 27 22:09:51 2007 +0200 +++ b/src/neon/neon.c Thu Sep 27 22:10:35 2007 +0200 @@ -53,6 +53,11 @@ neon_vfs_metadata_impl }; +/* bring ne_set_connect_timeout in as a weak reference, not using it + * unless we have it available (neon 0.27) --nenolod + */ +extern void ne_set_connect_timeout(ne_session *sess, int timeout) __attribute__ ((weak)); + /* * ======== */ @@ -565,7 +570,10 @@ ne_add_server_auth(handle->session, NE_AUTH_BASIC, server_auth_callback, (void *)handle); ne_set_session_flag(handle->session, NE_SESSFLAG_ICYPROTO, 1); ne_set_session_flag(handle->session, NE_SESSFLAG_PERSIST, 0); - ne_set_connect_timeout(handle->session, 10); + + if (ne_set_connect_timeout != NULL) + ne_set_connect_timeout(handle->session, 10); + ne_set_read_timeout(handle->session, 10); ne_set_useragent(handle->session, "Audacious/1.4.0"); ne_redirect_register(handle->session);