Re: (fwd) tin crashes on MacOS 10.4

Dennis Preiser <[email protected]> Tue, 29 Dec 2009 21:55:15 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
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.

Dennis