From f7e0d9441aa1a47cb1798876a8d8cd9e0dc4e870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Mon, 5 Mar 2018 11:25:06 +0100 Subject: [PATCH] Fix --disable-builtin configure option --- src/psl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/psl.c b/src/psl.c index 4860ca0..2570db3 100644 --- a/src/psl.c +++ b/src/psl.c @@ -170,7 +170,17 @@ struct _psl_ctx_st { }; /* include the PSL data generated by psl-make-dafsa */ +#if defined(BUILTIN_GENERATOR_LIBICU) || defined(BUILTIN_GENERATOR_LIBIDN2) || defined(BUILTIN_GENERATOR_LIBIDN) #include "suffixes_dafsa.c" +#else +static const unsigned char kDafsa[0]; +static time_t _psl_file_time = 0; +static int _psl_nsuffixes = 0; +static int _psl_nexceptions = 0; +static int _psl_nwildcards = 0; +static const char _psl_sha1_checksum[] = ""; +static const char _psl_filename[] = ""; +#endif /* references to these PSLs will result in lookups to built-in data */ static const psl_ctx_t