diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-16 14:31:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-16 14:34:17 -0400 |
commit | f35271bf3eceadd03bff26d34c1d020892d6c6f0 (patch) | |
tree | a74fad3643e97a71fdb5325d7d47d853dbb030b0 /src/common/util.c | |
parent | 75fc4dbbcabaedc715f0f9e883ccab1c9634e787 (diff) | |
download | tor-f35271bf3eceadd03bff26d34c1d020892d6c6f0.tar.gz tor-f35271bf3eceadd03bff26d34c1d020892d6c6f0.zip |
Fix some more FreeBSD4 issues (based on a patch from grarpamp)
Apparently, freebsd 4 doesn't like malloc.h, needs sys/param.h for
MIN/MAX, and doesn't have a SIZE_MAX.
For bug 3894.
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index a03a576321..f0ca4cb3a8 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -77,7 +77,7 @@ #include <malloc/malloc.h> #endif #ifdef HAVE_MALLOC_H -#ifndef OPENBSD +#if !defined(OPENBSD) && !defined(__FreeBSD__) /* OpenBSD has a malloc.h, but for our purposes, it only exists in order to * scold us for being so stupid as to autodetect its presence. To be fair, * they've done this since 1996, when autoconf was only 5 years old. */ |