Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-lib] Fixed compilation against libsoup < 2.41.1
  • Loading branch information
monich committed Mar 12, 2014
1 parent 92b7620 commit 562d812
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 0 additions & 2 deletions mms-lib/src/mms_task_http.c
Expand Up @@ -22,8 +22,6 @@
# include <net/if.h>
#endif

#include <libsoup/soup.h>

/* Appeared in libsoup somewhere between 2.41.5 and 2.41.90 */
#ifndef SOUP_SESSION_LOCAL_ADDRESS
# define SOUP_SESSION_LOCAL_ADDRESS "local-address"
Expand Down
11 changes: 9 additions & 2 deletions mms-lib/src/mms_task_http.h
Expand Up @@ -16,10 +16,17 @@
#define JOLLA_MMS_TASK_HTTP_H

#include "mms_task.h"
#include <libsoup/soup-status.h>
#include <libsoup/soup.h>

#if !SOUP_CHECK_VERSION(2,43,5)
#ifdef SOUP_CHECK_VERSION
/* SoupStatus was called SoupKnownStatusCode prior to 2.43.5 */
# define SOUP_STATUS_MISSING !SOUP_CHECK_VERSION(2,43,5)
#else
/* No SOUP_CHECK_VERSION macro prior to libsoup 2.41.1 */
# define SOUP_STATUS_MISSING 1
#endif

#if SOUP_STATUS_MISSING
# define SoupStatus SoupKnownStatusCode
#endif

Expand Down

0 comments on commit 562d812

Please sign in to comment.