Re: (fwd) tin crashes on MacOS 10.4

Dennis Preiser <[email protected]> Wed, 30 Dec 2009 12:33:51 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Tue, Dec 29, 2009 at 06:26:03PM -0500, Thomas Dickey wrote:
> On Wed, 30 Dec 2009, Urs Jan?en wrote:
> 
>>On Tue, Dec 29, 2009 at 03:57:23PM -0500, Thomas Dickey wrote:
>>>...or perhaps there's some Apple-define that turns on the bulk of things
>>>without aggravating anything.  There are several special cases in
>>>CF_XOPEN_SOURCE for other systems.
>>
>>no MacOS X here but
>><http://svn.python.org/projects/python/branches/py3k/configure.in>
>>has some comments on defining _XOPEN_SOURCE on various systems and if I
>>didn't overlook something a fix for CF_XOPEN_SOURCE would be:
>>
>>darwin*) #(vi
>>	CPPFLAGS="$CPPFLAGS -D_DARWIN_C_SOURCE"
>>	;;
> 
> perhaps (I have an old set of header files that doesn't show this symbol).
> What I have in cdefs.h uses _APPLE_C_SOURCE to define __DARWIN__UNIX03

You are right. It seems to be that Apple has renamed _APPLE_C_SOURCE to
_DARWIN_C_SOURCE between MacOS X 10.4 and 10.5.

10.4 equals to darwin8, so this:

darwin[0-8].*) #(vi
    CPPFLAGS="$CPPFLAGS -D_APPLE_C_SOURCE"
    ;;
darwin*) #(vi
    CPPFLAGS="$CPPFLAGS -D_DARWIN_C_SOURCE"
    ;;

might be a good solution.

Dennis