From 4d77b190fda05fb796185654203dc17bab8a5c2e Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sun, 8 Jun 2014 22:45:19 +0200 Subject: [PATCH] Fix build when libpsl is not available --- src/ChangeLog | 4 ++++ src/cookies.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 10dd42bb..5ebeaf34 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-06-08 Giuseppe Scrivano + + * cookies.c [HAVE_PSL]: Include only when HAVE_PSL is defined. + 2014-05-30 Darshit Shah * cookies.c (check_domain_match): Use libpsl to check if the cookie domain diff --git a/src/cookies.c b/src/cookies.c index 2c78fdf0..a46aeeef 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -51,7 +51,9 @@ as that of the covered work. */ #include #include #include -#include +#ifdef HAVE_LIBPSL +# include +#endif #include "utils.h" #include "hash.h" #include "cookies.h" -- 2.39.2