From: Giuseppe Scrivano Date: Sun, 8 Jun 2014 20:45:19 +0000 (+0200) Subject: Fix build when libpsl is not available X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=4d77b190fda05fb796185654203dc17bab8a5c2e Fix build when libpsl is not available --- 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"