[or-cvs] use sys/param.h if it"s there
Roger Dingledine
arma at seul.org
Tue Jun 1 17:03:03 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
or.h
Log Message:
use sys/param.h if it's there
Index: or.h
===================================================================
RCS file: /home/or/cvsroot/src/or/or.h,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- or.h 26 May 2004 20:27:54 -0000 1.358
+++ or.h 1 Jun 2004 17:03:01 -0000 1.359
@@ -40,13 +40,16 @@
#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
More information about the tor-commits
mailing list