[or-cvs] Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD
Peter Palfrader
weasel at seul.org
Wed Mar 29 05:14:15 UTC 2006
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv10166/src/common
Modified Files:
torint.h
Log Message:
Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD
Index: torint.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/torint.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -p -d -r1.23 -r1.24
--- torint.h 9 Feb 2006 05:46:48 -0000 1.23
+++ torint.h 29 Mar 2006 05:14:12 -0000 1.24
@@ -27,10 +27,13 @@
#include <sys/limits.h>
#endif
#ifdef HAVE_MACHINE_LIMITS_H
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
/* 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. */
+ I include both.
+ __FreeBSD_kernel__ is defined by Debian GNU/kFreeBSD which
+ does the same thing (but doesn't defined __FreeBSD__).
+ */
#include <machine/limits.h>
#endif
#endif
More information about the tor-commits
mailing list