aboutsummaryrefslogtreecommitdiff
path: root/src/common/torint.h
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-03-29 05:14:12 +0000
committerPeter Palfrader <peter@palfrader.org>2006-03-29 05:14:12 +0000
commit1fa7b3cef72d88077709c2c2fd7521c189c05572 (patch)
treef953fdace51fece52a1d389dbb03bc31a8a52a46 /src/common/torint.h
parent0567506feb2a2456555b0cba02ea579d65556026 (diff)
downloadtor-1fa7b3cef72d88077709c2c2fd7521c189c05572.tar
tor-1fa7b3cef72d88077709c2c2fd7521c189c05572.tar.gz
Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD
svn:r6271
Diffstat (limited to 'src/common/torint.h')
-rw-r--r--src/common/torint.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/torint.h b/src/common/torint.h
index ecb4f769f..8202baa59 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -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