> It would be nice to just:
>
> #if defined(__INTERIX) && !defined(_ALL_SOURCE)
> #define _ALL_SOURCE
> #endif
Indeed, this seems to be the right solution.
> in lib.h, but that invites clashing declarations like:
>
>
> /src/groff-1.20/src/include/lib.h:120: error: declaration of C function `int
> strncasecmp(const char*, const char*, int)' conflicts with
> /usr/include/strings.h:68: error: previous declaration `int strncasecmp(const
> char*, const char*, unsigned int)' here
>
>
> and similar for putenv.
How comes? There is an explicit autoconf test which controls the
NEED_DECLARATION_STRNCASECMP and NEED_DECLARATION_PUTENV macros.
Maybe the GROFF_NEED_DECLARATION macro in m4/groff.m4 is broken for
your platform. Can you check config.log, please? Your patches fix
the symptoms but not the cause :-)
Werner
_______________________________________________
bug-groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-groff