]> sjero.net Git - wget/commitdiff
Fix build when libpsl is not available master
authorGiuseppe Scrivano <gscrivan@redhat.com>
Sun, 8 Jun 2014 20:45:19 +0000 (22:45 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Sun, 8 Jun 2014 20:45:19 +0000 (22:45 +0200)
src/ChangeLog
src/cookies.c

index 10dd42bba9da5e2c19ae6131664518a2ab4bea5a..5ebeaf34eda02a3564547b73d30a4a709017233b 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-08  Giuseppe Scrivano  <gscrivan@redhat.com>
+
+       * cookies.c [HAVE_PSL]: Include <libpsl.h> only when HAVE_PSL is defined.
+
 2014-05-30  Darshit Shah  <darnir@gmail.com>
 
        * cookies.c (check_domain_match): Use libpsl to check if the cookie domain
index 2c78fdf0cd3ad4135def6ddb8d9f2573e989a924..a46aeeef293a4e03026da21d1c2d09b2d6d2050d 100644 (file)
@@ -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"