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
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2014-04-06 18:03:11 -03:00
parent 31f36d805a
commit f187d9fc7c

View file

@ -34,8 +34,13 @@
#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;