From: Willy Tarreau Date: Mon, 9 Apr 2007 20:16:12 +0000 (+0200) Subject: [BUILD] Fix limits.h once for all X-Git-Tag: v1.3.9~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=167d8b59531bb0fde68d374dda2520bf1f1ed76d;p=thirdparty%2Fhaproxy.git [BUILD] Fix limits.h once for all Patch #cf83df3d162687d9c74783357421bd89f596eaac was stupid. Including limits.h is portable and easier. At least it now builds on Solaris, FreeBSD, Linux and OpenBSD. --- diff --git a/include/common/standard.h b/include/common/standard.h index 3dea1fdaec..b150234730 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -22,16 +22,11 @@ #ifndef _COMMON_STANDARD_H #define _COMMON_STANDARD_H -#include +#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); })