From 85db24636adb6223d73395d51762e6923847883a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 19 Jun 2006 14:07:24 +0000 Subject: configure.ac: Fix check so that future libneon API changes won't break the build. Original commit message from CVS: * configure.ac: Fix check so that future libneon API changes won't break the build. * ext/neon/gstneonhttpsrc.c: Fix build with libneon-0.26.x (#345182). --- ext/neon/gstneonhttpsrc.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'ext/neon/gstneonhttpsrc.c') diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 356da9a0..98da8234 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -20,6 +20,10 @@ #include #include +#ifndef NE_FREE +#define NEON_026_OR_LATER 1 +#endif + #define HTTP_DEFAULT_HOST "localhost" #define HTTP_DEFAULT_PORT 80 #define HTTPS_DEFAULT_PORT 443 @@ -626,10 +630,13 @@ set_proxy (const char *uri, ne_uri * parsed, gboolean set_default) if (parsed->host && !parsed->port) { goto clear; } - - if (!parsed->path || parsed->authinfo) { +#ifdef NEON_026_OR_LATER + if (!parsed->path || parsed->userinfo) goto clear; - } +#else + if (!parsed->path || parsed->authinfo) + goto clear; +#endif return TRUE; -- cgit v1.2.1