summaryrefslogtreecommitdiff
path: root/gettext-runtime/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-09-14 13:30:24 +0200
committerBruno Haible <bruno@clisp.org>2019-09-14 13:30:24 +0200
commit7f23923bb0dd500b4fe911a6dbd38ee6a6f3a5cd (patch)
tree9213bddd36ebfacfaa399af1590899e8ef71477d /gettext-runtime/m4
parentdfbe004f01ee97e7d85e3fd50170a5a3fcfeda33 (diff)
downloadgettext-7f23923bb0dd500b4fe911a6dbd38ee6a6f3a5cd.tar.gz
build: Avoid failing a configure test due to CFLAGS="-Werror".
Reported by Florian Weimer <fweimer@redhat.com>. * gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): In the test program, include <unistd.h>, for the declaration of _exit().
Diffstat (limited to 'gettext-runtime/m4')
-rw-r--r--gettext-runtime/m4/intdiv0.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/gettext-runtime/m4/intdiv0.m4 b/gettext-runtime/m4/intdiv0.m4
index e63fcf100..3dbc944f7 100644
--- a/gettext-runtime/m4/intdiv0.m4
+++ b/gettext-runtime/m4/intdiv0.m4
@@ -1,4 +1,4 @@
-# intdiv0.m4 serial 6 (gettext-0.18.2)
+# intdiv0.m4 serial 7 (gettext-0.21)
dnl Copyright (C) 2002, 2007-2008, 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -31,8 +31,11 @@ changequote([,])dnl
if test -z "$gt_cv_int_divbyzero_sigfpe"; then
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
-#include <stdlib.h>
+#include <stdlib.h> /* for exit() */
#include <signal.h>
+#if !(defined _WIN32 && !defined __CYGWIN__)
+#include <unistd.h> /* for _exit() */
+#endif
static void
sigfpe_handler (int sig)