From: Bruno Haible Date: Sun, 20 Jun 2021 01:43:45 +0000 (+0200) Subject: intl: Assume exists. X-Git-Tag: v0.21.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2062017a664ddb3956fff0d3c81450f76e045126;p=thirdparty%2Fgettext.git intl: Assume exists. * gettext-runtime/intl/dcigettext.c: Include always. * gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for limits.h. --- diff --git a/gettext-runtime/intl/dcigettext.c b/gettext-runtime/intl/dcigettext.c index 0e9710bcf..1fdbd4dd1 100644 --- a/gettext-runtime/intl/dcigettext.c +++ b/gettext-runtime/intl/dcigettext.c @@ -175,12 +175,7 @@ static void *mempcpy (void *dest, const void *src, size_t n); #define PATH_INCR 32 /* The following is from pathmax.h. */ -/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define - PATH_MAX but might cause redefinition warnings when sys/param.h is - later included (as on MORE/BSD 4.3). */ -#if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) -# include -#endif +#include #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 diff --git a/gettext-runtime/m4/intl.m4 b/gettext-runtime/m4/intl.m4 index 84a166f61..cd5a7287b 100644 --- a/gettext-runtime/m4/intl.m4 +++ b/gettext-runtime/m4/intl.m4 @@ -1,4 +1,4 @@ -# intl.m4 serial 48 (gettext-0.21.1) +# intl.m4 serial 49 (gettext-0.21.1) dnl Copyright (C) 1995-2014, 2016-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -240,7 +240,7 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE], [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], [Define to 1 if the compiler understands __builtin_expect.])]) - AC_CHECK_HEADERS([inttypes.h limits.h unistd.h sys/param.h]) + AC_CHECK_HEADERS([inttypes.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch __fsetlocking])