Fix --disable-builtin configure option

This commit is contained in:
Tim Rühsen 2018-03-05 11:25:06 +01:00
parent 6220e02ebd
commit f7e0d9441a
1 changed files with 10 additions and 0 deletions

View File

@ -170,7 +170,17 @@ struct _psl_ctx_st {
}; };
/* include the PSL data generated by psl-make-dafsa */ /* 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" #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 */ /* references to these PSLs will result in lookups to built-in data */
static const psl_ctx_t static const psl_ctx_t