delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/12/05:56:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 12 Jan 2013 11:55:42 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: XOPEN_SOURCE and strings.h
Message-ID: <20130112105542.GA4877@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <DB6397CD-79A6-428E-9B08-15365DC7BCF4 AT Denis-Excoffier DOT org>
MIME-Version: 1.0
In-Reply-To: <DB6397CD-79A6-428E-9B08-15365DC7BCF4@Denis-Excoffier.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jan 11 22:47, Denis Excoffier wrote:
> Hello,
> 
> In order to compile some packages (including slang-2.2.4 and ccrypt-1.9)
> with GCC-4.7.2, i had to patch /usr/include/string.h iaw the following:
> 
> 
> diff -uNr x-o/usr/include/string.h x-p/usr/include/string.h
> --- x-o/usr/include/string.h	2012-11-23 14:40:09.000000000 +0100
> +++ x-p/usr/include/string.h	2013-01-11 22:29:39.000000000 +0100
> @@ -64,13 +64,13 @@
>  char	*_EXFUN(strcasestr,(const char *, const char *));
>  char 	*_EXFUN(strchrnul,(const char *, int));
>  #endif
> -#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 500)
> +#if !defined(__STRICT_ANSI__) || ((_XOPEN_SOURCE - 0) >= 500)
>  char 	*_EXFUN(strdup,(const char *));
>  #endif
>  #ifndef __STRICT_ANSI__
>  char 	*_EXFUN(_strdup_r,(struct _reent *, const char *));
>  #endif
> -#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 700)
> +#if !defined(__STRICT_ANSI__) || ((_XOPEN_SOURCE - 0) >= 700)
>  char 	*_EXFUN(strndup,(const char *, size_t));
>  #endif
>  #ifndef __STRICT_ANSI__
> 

Thanks, I applied a patch.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019