]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rik's patch to not complain about freebsd's bug
authorRoger Dingledine <arma@torproject.org>
Wed, 26 May 2004 20:27:54 +0000 (20:27 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 26 May 2004 20:27:54 +0000 (20:27 +0000)
svn:r1921

src/common/util.c
src/or/or.h

index 727af645b0e9d7e9f6b1d5c993de54baa2f5a265..764930c0ebb43b51dedb314c401af39a0a1674a9 100644 (file)
 #include <sys/limits.h>
 #endif
 #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 complaints even when
+     I include both. */
 #include <machine/limits.h>
 #endif
+#endif
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */
 #endif
index 7d46e902aa59a34a0ad335881ee4597e412d30dd..9714a1d68247f2ac724abf9c96ad6eb240ae42d4 100644 (file)
 #include <sys/limits.h>
 #endif
 #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 complaints even when
+     I include both. */
 #include <machine/limits.h>
 #endif
+#endif
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */
 #endif