[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: groff 1.20 on Interix (all_source)
From: |
Werner LEMBERG |
Subject: |
Re: groff 1.20 on Interix (all_source) |
Date: |
Wed, 24 Jun 2009 14:59:54 +0200 (CEST) |
> 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