From 167d8b59531bb0fde68d374dda2520bf1f1ed76d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 9 Apr 2007 22:16:12 +0200 Subject: [PATCH] [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. --- include/common/standard.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); }) -- 2.47.3