diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-02 14:00:09 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-03 10:23:44 +0200 |
commit | ec8fffcc36f10be6f9df71694cc91796463a6219 (patch) | |
tree | dbc8b485b6c414d92858995cfd333563dbb8a7e2 | |
parent | c81d89c4f0d5f0458f4794125999014657ba0eb1 (diff) | |
download | librest-ec8fffcc36f10be6f9df71694cc91796463a6219.tar.gz |
tests: Don't call soup_message_headers_get with newer libsoup
This is deprecated and causes compile-time warnings
https://bugzilla.gnome.org/show_bug.cgi?id=735921
-rw-r--r-- | tests/proxy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/proxy.c b/tests/proxy.c index 36414de..74379e8 100644 --- a/tests/proxy.c +++ b/tests/proxy.c @@ -36,6 +36,11 @@ #include <libsoup/soup.h> #include <rest/rest-proxy.h> +#if SOUP_CHECK_VERSION (2, 28, 0) +/* Avoid deprecation warning with newer libsoup */ +#define soup_message_headers_get soup_message_headers_get_one +#endif + static int errors = 0; static void |