From f00ea22784d28a92b14dd5b570eda217c7d9a462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Thu, 11 Jul 2013 05:38:46 +0000 Subject: main/musl: various fixes from git master, and packaging fixes - use upstream commits for all arm pie/unwind fixes - replace getopt with BSD licensed GNU compatible getopt - set proper SONAME for the libc generated for packaging purposes - rename libc.so to be ld-musl-$ARCH.so.1 and point the SONAME and ldd links to it. this allows libc.so to go to -dev package as it will be used for compiling only. - move specs file to musl-crosstool subpackage --- ...-in-sys-select.h-with-appropriate-feature.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 main/musl/0005-add-NFDBITS-in-sys-select.h-with-appropriate-feature.patch (limited to 'main/musl/0005-add-NFDBITS-in-sys-select.h-with-appropriate-feature.patch') diff --git a/main/musl/0005-add-NFDBITS-in-sys-select.h-with-appropriate-feature.patch b/main/musl/0005-add-NFDBITS-in-sys-select.h-with-appropriate-feature.patch new file mode 100644 index 0000000000..3738bc5620 --- /dev/null +++ b/main/musl/0005-add-NFDBITS-in-sys-select.h-with-appropriate-feature.patch @@ -0,0 +1,31 @@ +From 9b9dc74b67b9ecd30db9f3266a5ce309b0ffbfef Mon Sep 17 00:00:00 2001 +From: Rich Felker +Date: Sat, 6 Jul 2013 01:12:28 -0400 +Subject: [PATCH 5/9] add NFDBITS in sys/select.h with appropriate feature + tests + +the main use for this macro seems to be knowing the correct allocation +granularity for dynamic-sized fd_set objects. such usage is +non-conforming and results in undefined behavior, but it is widespread +in applications. +--- + include/sys/select.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/sys/select.h b/include/sys/select.h +index c5a2877..e25257d 100644 +--- a/include/sys/select.h ++++ b/include/sys/select.h +@@ -32,6 +32,9 @@ typedef struct + int select (int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, struct timeval *__restrict); + int pselect (int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, const struct timespec *__restrict, const sigset_t *__restrict); + ++#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) ++#define NFDBITS (8*(int)sizeof(long)) ++#endif + + #ifdef __cplusplus + } +-- +1.8.3.2 + -- cgit v1.2.3