diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-26 12:05:33 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-26 12:05:33 -0500 |
commit | 56c6943efed41adad6b3c11b2992628a5b0f1d27 (patch) | |
tree | d0c71dbe32fda3fb3d361dafbf504df8e7bd79e1 /include | |
parent | a8da6c2f287037cbacc65578a268f355760eaf8e (diff) | |
download | musl-56c6943efed41adad6b3c11b2992628a5b0f1d27.tar.gz musl-56c6943efed41adad6b3c11b2992628a5b0f1d27.tar.xz musl-56c6943efed41adad6b3c11b2992628a5b0f1d27.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/limits.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |