mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
use sys/param.h if it's there
svn:r1927
This commit is contained in:
parent
f5e0900902
commit
1ef411fefd
@ -54,12 +54,16 @@
|
||||
#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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user