aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-16 14:31:36 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-16 14:34:17 -0400
commitf35271bf3eceadd03bff26d34c1d020892d6c6f0 (patch)
treea74fad3643e97a71fdb5325d7d47d853dbb030b0 /src/common/compat.h
parent75fc4dbbcabaedc715f0f9e883ccab1c9634e787 (diff)
downloadtor-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/compat.h')
-rw-r--r--src/common/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index d2f1fd1295..2c50ef154a 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -19,6 +19,9 @@
#include <ws2tcpip.h>
#endif
#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif