summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-11 23:23:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-11 23:24:11 -0500
commit94046871d24d5408adaf61941a4751c77abe06b6 (patch)
tree5ad9237095d443c38aebbd482b59720f26083a20
parent6f592a7812de3190f567174bbb4baa40790831dd (diff)
downloadmusl-94046871d24d5408adaf61941a4751c77abe06b6.tar.gz
musl-94046871d24d5408adaf61941a4751c77abe06b6.tar.bz2
musl-94046871d24d5408adaf61941a4751c77abe06b6.tar.xz
musl-94046871d24d5408adaf61941a4751c77abe06b6.zip
confstr: Add _CS_POSIX_V7_THREADS_*
This is used to determine what CFLAGS/LDFLAGS are needed to enable compilation with threads on musl. We don't have any special ones, so just return an empty string. This is required to be present in <unistd.h>.
-rw-r--r--include/unistd.h2
-rw-r--r--src/conf/confstr.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 2b88bbb2..68686dfd 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -460,6 +460,8 @@ int eaccess(const char *, int);
#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
#define _CS_V6_ENV 1148
#define _CS_V7_ENV 1149
+#define _CS_POSIX_V7_THREADS_CFLAGS 1150
+#define _CS_POSIX_V7_THREADS_LDFLAGS 1151
#ifdef __cplusplus
}
diff --git a/src/conf/confstr.c b/src/conf/confstr.c
index 02cb1aa2..3d417284 100644
--- a/src/conf/confstr.c
+++ b/src/conf/confstr.c
@@ -7,7 +7,7 @@ size_t confstr(int name, char *buf, size_t len)
const char *s = "";
if (!name) {
s = "/bin:/usr/bin";
- } else if ((name&~4U)!=1 && name-_CS_POSIX_V6_ILP32_OFF32_CFLAGS>33U) {
+ } else if ((name&~4U)!=1 && name-_CS_POSIX_V6_ILP32_OFF32_CFLAGS>35U) {
errno = EINVAL;
return 0;
}