From d3f0fcf2e487273f967d8e61db34cca1e1a12452 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 16 Apr 2018 23:08:04 -0500 Subject: system/musl: not-new package --- .../0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 system/musl/0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch (limited to 'system/musl/0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch') diff --git a/system/musl/0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch b/system/musl/0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch new file mode 100644 index 000000000..ab1203cca --- /dev/null +++ b/system/musl/0002-confstr-Add-_CS_POSIX_V7_THREADS_.patch @@ -0,0 +1,44 @@ +From 94046871d24d5408adaf61941a4751c77abe06b6 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Wed, 11 Apr 2018 23:23:31 -0500 +Subject: [PATCH 2/2] 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 . +--- + include/unistd.h | 2 ++ + src/conf/confstr.c | 2 +- + 2 files changed, 3 insertions(+), 1 deletion(-) + +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; + } +-- +2.15.0 + -- cgit v1.2.3-60-g2f50