[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] [PATCH] m4/intdiv0.m4: Include <unistd.h> for a declar
From: |
Florian Weimer |
Subject: |
Re: [bug-gettext] [PATCH] m4/intdiv0.m4: Include <unistd.h> for a declaration of _exit |
Date: |
Sat, 14 Sep 2019 10:01:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
* Bruno Haible:
> Hi,
>
> Florian Weimer wrote:
>> * m4/intdiv0.m4 (gt_INTDIV0): Include <unistd.h> for _exit.
>
> Thanks. I guess you are configuring with CFLAGS="-Werror"?
No, with a patched GCC which rejects implicit function declarations in
C99 and later modes (as required by the standard). But the net effect
is roughly the same as configuring with:
CC="gcc -Werror=implicit-function-declaration"
> Applied in a different form. (On mingw, which has <unistd.h>,
> _exit() is still declared in <stdlib.h>.)
Thanks.
Florian