diff --git a/include/common/standard.h b/include/common/standard.h index 5b9d4a8c6..3dea1fdae 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -22,10 +22,16 @@ #ifndef _COMMON_STANDARD_H #define _COMMON_STANDARD_H +#include #include #include #include +#ifndef INT_MAX +/* Needed on FreeBSD */ +#include +#endif + /****** string-specific macros and functions ******/ /* if a > max, then bound to . The macro returns the new */ #define UBOUND(a, max) ({ typeof(a) b = (max); if ((a) > b) (a) = b; (a); })