Explorar o código

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.
Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
56c6943efe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/limits.h

+ 1 - 1
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