From 6f8c9f5d85affa54bdf9983d3157770c1ed11110 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 16 Oct 2022 22:09:01 +0200 Subject: [PATCH] config.h: fix uclibc builds without NLS uclibc defines __GLIBC__ but doesn't always have NLS support resulting in the following build failure: In file included from whois.h:1, from whois.c:44: utils.h:38:11: fatal error: libintl.h: No such file or directory 38 | # include | ^~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/a9d1c9076345d94ac2f9a4008b8563c5a34f655e Signed-off-by: Fabrice Fontaine --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.h b/config.h index d26ffb5..005c34a 100644 --- a/config.h +++ b/config.h @@ -17,7 +17,7 @@ # include #endif -#ifdef __GLIBC__ +#if defined __GLIBC__ && !defined __UCLIBC__ # define ENABLE_NLS #endif