tests: souphttpsrc: use SoupKnownStatusCode if needed
authorReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Sun, 6 Apr 2014 21:03:11 +0000 (18:03 -0300)
committerReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
Mon, 7 Apr 2014 20:48:35 +0000 (17:48 -0300)
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

index 6994fac..4a275d5 100644 (file)
 #include <libsoup/soup-auth-domain.h>
 #include <libsoup/soup-auth-domain-basic.h>
 #include <libsoup/soup-auth-domain-digest.h>
+#include <libsoup/soup-version.h>
 #include <gst/check/gstcheck.h>
 
+#if !(SOUP_CHECK_VERSION(2, 44, 0))
+#define SoupStatus SoupKnownStatusCode
+#endif
+
 static guint http_port = 0, https_port = 0;
 
 gboolean redirect = TRUE;