Re: (fwd) tin crashes on MacOS 10.4

Thomas Dickey <[email protected]> Tue, 29 Dec 2009 15:57:23 -0500 (EST)
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Tue, 29 Dec 2009, Dennis Preiser wrote:

> On Tue, Dec 29, 2009 at 06:08:09PM +0100, Urs Janßen wrote:
>
> [Problems with MacOS X]
>
> tin stops crashing on MacOS X after removing -D_XOPEN_SOURCE=500 from
> CPPFLAGS in src/Makefile.
>
> Apple uses (at least in 10.4) a lot of:
>
> #if  !defined(_POSIX_SOURCE)
> #define something
> #endif
>
> or:
>
> #ifndef _POSIX_C_SOURCE
> something
> #endif /* _POSIX_C_SOURCE */
>
> in the header-files shipped with the OS. Turning on posix-related
> definitions makes these things undefined (or absent).
>
> I think, the best way would be to let configure find out whether it runs
> on MacOS X or not and set the _XOPEN_SOURCE stuff only in the !MacOS X
> case.

...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.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net