소스 검색

Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD

svn:r6271
Peter Palfrader 19 년 전
부모
커밋
1fa7b3cef7
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/common/torint.h

+ 5 - 2
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