From f187d9fc7caa5f1c58662c069adbbacfb2bbca26 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sun, 6 Apr 2014 18:03:11 -0300 Subject: [PATCH] tests: souphttpsrc: use SoupKnownStatusCode if needed From libsoup docs: Prior to 2.44 SoupStatus was called SoupKnownStatusCode, but the individual values have always had the names they have now. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=727329 --- tests/check/elements/souphttpsrc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c index 6994facba6..4a275d5d4b 100644 --- a/tests/check/elements/souphttpsrc.c +++ b/tests/check/elements/souphttpsrc.c @@ -34,8 +34,13 @@ #include #include #include +#include #include +#if !(SOUP_CHECK_VERSION(2, 44, 0)) +#define SoupStatus SoupKnownStatusCode +#endif + static guint http_port = 0, https_port = 0; gboolean redirect = TRUE;