From 052d99de74371236216ac50227ec7ec90a684e43 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 31 Jan 2025 16:14:33 -0500 Subject: [PATCH] [fix] ifdef includes around stndup --- src/expand.c | 8 ++++++++ src/numex.c | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/src/expand.c b/src/expand.c index 2e1dc977..90ade598 100644 --- a/src/expand.c +++ b/src/expand.c @@ -15,6 +15,14 @@ #include "token_types.h" #include "transliterate.h" +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef HAVE_STRNDUP +#include "strndup.h" +#endif + #define DEFAULT_KEY_LEN 32 diff --git a/src/numex.c b/src/numex.c index 6edaca1a..c20efd34 100644 --- a/src/numex.c +++ b/src/numex.c @@ -5,6 +5,15 @@ #include "log/log.h" +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef HAVE_STRNDUP +#include "strndup.h" +#endif + + #define NUMEX_TABLE_SIGNATURE 0xBBBBBBBB #define NUMEX_SETUP_ERROR "numex module not setup, call libpostal_setup() or numex_module_setup()\n"