]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
use sys/param.h if it's there
authorRoger Dingledine <arma@torproject.org>
Tue, 1 Jun 2004 17:03:01 +0000 (17:03 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 1 Jun 2004 17:03:01 +0000 (17:03 +0000)
svn:r1927

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

index 764930c0ebb43b51dedb314c401af39a0a1674a9..2db99d6c05bbc674bae7cf0c0ad2b9595f4f3a89 100644 (file)
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
 #endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h> /* FreeBSD needs this to know what version it is */
+#endif
 #ifdef HAVE_SYS_LIMITS_H
 #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
+  /* 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
index 9714a1d68247f2ac724abf9c96ad6eb240ae42d4..6c4c5eff75abbbdba9fba9dedada4e65921bc4ef 100644 (file)
 #endif
 #include "../common/torint.h"
 #include "../common/fakepoll.h"
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h> /* FreeBSD needs this to know what version it is */
+#endif
 #ifdef HAVE_SYS_LIMITS_H
 #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
+     and I should migrate to using sys/limits. It complains even when
      I include both. */
 #include <machine/limits.h>
 #endif