__FreeBSD__ define
Hey,
one of my packages checks whether __FreeBSD__ is defined[1] and if that
is the case i then avoids including machine/limits.h as this only causes
noise on FreeBSD[0].
It seems the Debian/KFreeBSD port doesn't have __FreeBSD__ define.
Is __FreeBSD__ only for the Real FreeBSD, and if yes, what should the
code check for instead or in addition?
Thanks,
Peter
0. See
http://experimental.ftbfs.de/fetch.php?&pkg=tor&ver=0.1.1.17-rc-1&arch=kfreebsd-i386&stamp=1143554341&file=log&as=raw
1.
http://cvs.seul.org/viewcvs/viewcvs.cgi/tor/src/common/torint.h?rev=1.23&root=tor&view=auto
#ifdef HAVE_MACHINE_LIMITS_H
#ifndef __FreeBSD__
/* FreeBSD has a bug where it complains that this file is obsolete,
and I should migrate to using sys/limits. It complains even when
I include both. */
#include <machine/limits.h>
#endif
#endif
Reply to: