about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-26 12:05:33 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-26 12:05:33 -0500
commit56c6943efed41adad6b3c11b2992628a5b0f1d27 (patch)
treed0c71dbe32fda3fb3d361dafbf504df8e7bd79e1 /include
parenta8da6c2f287037cbacc65578a268f355760eaf8e (diff)
downloadmusl-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.h2
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