From 56c6943efed41adad6b3c11b2992628a5b0f1d27 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 26 Nov 2012 12:05:33 -0500 Subject: [PATCH] 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. --- include/limits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1