From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126732 invoked by alias); 6 Sep 2018 12:21:49 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 126715 invoked by uid 9078); 6 Sep 2018 12:21:49 -0000 Date: Thu, 06 Sep 2018 12:21:00 -0000 Message-ID: <20180906122149.126713.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Include sys/syslimits.h in limits.h X-Act-Checkin: newlib-cygwin X-Git-Author: Keith Packard X-Git-Refname: refs/heads/master X-Git-Oldrev: 81e0841dbc8f3da528c515ad7a07d79309ddb374 X-Git-Newrev: 28ecec475ff423b368bcca329f42cfed29308d61 X-SW-Source: 2018-q3/txt/msg00117.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=28ecec475ff423b368bcca329f42cfed29308d61 commit 28ecec475ff423b368bcca329f42cfed29308d61 Author: Keith Packard Date: Wed Sep 5 21:23:46 2018 -0700 Include sys/syslimits.h in limits.h This makes sure any system-defined limits are specified before the defaults are checked. Without this, ARG_MAX and PATH_MAX end up getting the default definitions from limits.h rather than the defines from syslimits.h. This could potentially cause problems when different files used different values for the same name. Signed-off-by: Keith Packard Diff: --- newlib/libc/include/limits.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/include/limits.h b/newlib/libc/include/limits.h index dd09c1c..893f108 100644 --- a/newlib/libc/include/limits.h +++ b/newlib/libc/include/limits.h @@ -3,6 +3,7 @@ #include #include +#include # ifdef _MB_LEN_MAX # define MB_LEN_MAX _MB_LEN_MAX