From 1ef411fefdde460a03d0c37d1893fee20d450602 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 1 Jun 2004 17:03:01 +0000 Subject: use sys/param.h if it's there svn:r1927 --- src/common/util.c | 6 +++++- src/or/or.h | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/util.c b/src/common/util.c index 764930c0eb..2db99d6c05 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -54,12 +54,16 @@ #ifdef HAVE_LIMITS_H #include #endif +#ifdef HAVE_SYS_PARAM_H +#include /* FreeBSD needs this to know what version it is */ +#endif #ifdef HAVE_SYS_LIMITS_H #include #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 #endif diff --git a/src/or/or.h b/src/or/or.h index 9714a1d682..6c4c5eff75 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -40,13 +40,16 @@ #endif #include "../common/torint.h" #include "../common/fakepoll.h" +#ifdef HAVE_SYS_PARAM_H +#include /* FreeBSD needs this to know what version it is */ +#endif #ifdef HAVE_SYS_LIMITS_H #include #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 #endif -- cgit v1.2.3-54-g00ecf