X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/efafa5271957fb54b356ec1c90e8613f14de40d4..a47fa07558e7bbf152afbeaa50d699400be667a1:/module/nominatim.c?ds=inline diff --git a/module/nominatim.c b/module/nominatim.c index 9d43c22f..54632f76 100644 --- a/module/nominatim.c +++ b/module/nominatim.c @@ -11,10 +11,12 @@ #include "mb/pg_wchar.h" #include -#ifdef PG_MODULE_MAGIC -PG_MODULE_MAGIC; +#if PG_MAJORVERSION_NUM > 15 +#include "varatt.h" #endif +PG_MODULE_MAGIC; + Datum transliteration( PG_FUNCTION_ARGS ); Datum gettokenstring( PG_FUNCTION_ARGS ); void str_replace(char* buffer, int* len, int* changes, char* from, int fromlen, char* to, int tolen, int);