On 2 Oct 2011, at 21:31, Gary V. Vaughan wrote:
> On 2 Oct 2011, at 19:23, Gary V. Vaughan wrote:
>> $ grep stpncpy /usr/include/*
>> /usr/include/string.h:char    *stpncpy(char *, const char *, size_t) 
>> __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3;
> 
> Cut-n-paste error, sorry.  The trailing ')' is not missing in the real 
> string.h header.


I found this:

https://trac.macports.org/browser/trunk/dports/devel/gettext/files/stpncpy.patch

While plainly not the right file to patch, it does allow me to complete a 
gettext-0.18.1.1 build on Mac OS 10.7.1.  Maybe a better guard would be '#if 
defined(_AIX) && !defined(stpncpy)'... I'll be happy to test whatever fix is 
applied.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)

Reply via email to