Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Fix build when libpsl is not available

$
0
0
FYI, I've pushed this:

src/ChangeLog | 4 ++++
src/cookies.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 10dd42b..5ebeaf3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-08 Giuseppe Scrivano gscrivan [ at ] redhat.com

+ * cookies.c [HAVE_PSL]: Include <libpsl.h> only when HAVE_PSL is defined.

2014-05-30 Darshit Shah darnir [ at ] gmail.com

* cookies.c (check_domain_match): Use libpsl to check if the cookie domain
diff --git a/src/cookies.c b/src/cookies.c
index 2c78fdf..a46aeee 100644
--- a/src/cookies.c
+++ b/src/cookies.c
@@ -51,7 +51,9 @@ as that of the covered work. */
#include <assert.h>
#include <errno.h>
#include <time.h>
-#include <libpsl.h>
+#ifdef HAVE_LIBPSL
+# include <libpsl.h>
+#endif
#include "utils.h"
#include "hash.h"
#include "cookies.h"

Viewing all articles
Browse latest Browse all 6551

Trending Articles