From: Rich Felker Date: Mon, 26 Nov 2012 17:05:33 +0000 (-0500) Subject: fix missing limits when only _BSD_SOURCE is defined X-Git-Tag: v0.9.8~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56c6943efed41adad6b3c11b2992628a5b0f1d27;p=oweals%2Fmusl.git fix missing limits when only _BSD_SOURCE is defined the missing check did not affect the default profile, since it has both _XOPEN_SOURCE and _BSD_SOURCE defined, but it did break programs which explicitly define _BSD_SOURCE, causing it to be the only feature test macro present. --- diff --git a/include/limits.h b/include/limits.h index e12618af..ae05f1a0 100644 --- a/include/limits.h +++ b/include/limits.h @@ -37,7 +37,7 @@ #define MB_LEN_MAX 4 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define PIPE_BUF 4096 #define PAGESIZE PAGE_SIZE