diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 19:14:01 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 19:14:39 +0000 |
commit | a43872a644fca2fc4326714ebcedc8bfae74cc20 (patch) | |
tree | 4147b45cc107580a6f77fbe1e2229c7167067ae3 /community/networkmanager/musl-basic.patch | |
parent | d6bb814c17dcbc06a0e913fa55a746cecbc7bdc0 (diff) | |
download | aports-a43872a644fca2fc4326714ebcedc8bfae74cc20.tar.bz2 aports-a43872a644fca2fc4326714ebcedc8bfae74cc20.tar.xz |
community/networkmanager: take maintainership, upgrade to 1.6.2, update to latest policy
Diffstat (limited to 'community/networkmanager/musl-basic.patch')
-rw-r--r-- | community/networkmanager/musl-basic.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/community/networkmanager/musl-basic.patch b/community/networkmanager/musl-basic.patch new file mode 100644 index 0000000000..3d5bb1dca2 --- /dev/null +++ b/community/networkmanager/musl-basic.patch @@ -0,0 +1,65 @@ +--- a/src/systemd/src/basic/stdio-util.h ++++ b/src/systemd/src/basic/stdio-util.h +@@ -19,7 +19,9 @@ + along with systemd; If not, see <http://www.gnu.org/licenses/>. + ***/ + ++#if defined(__GLIBC__) + #include <printf.h> ++#endif + #include <stdarg.h> + #include <stdio.h> + #include <sys/types.h> +--- a/src/systemd/src/basic/util.h ++++ b/src/systemd/src/basic/util.h +@@ -46,6 +46,11 @@ + #include "missing.h" + #include "time-util.h" + ++#if !defined(__GLIBC__) ++typedef int (*__compar_fn_t) (const void*, const void*); ++typedef __compar_fn_t comparison_fn_t; ++#endif ++ + size_t page_size(void) _pure_; + #define PAGE_ALIGN(l) ALIGN_TO((l), page_size()) + +--- a/src/systemd/src/basic/parse-util.c ++++ b/src/systemd/src/basic/parse-util.c +@@ -25,7 +25,11 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#if defined(__GLIBC__) + #include <xlocale.h> ++#else ++#include <locale.h> ++#endif + + #include "alloc-util.h" + #include "extract-word.h" +--- a/src/systemd/sd-adapt/nm-sd-adapt.h ++++ b/src/systemd/sd-adapt/nm-sd-adapt.h +@@ -119,7 +119,7 @@ + # ifdef HAVE___SECURE_GETENV + # define secure_getenv __secure_getenv + # else +-# error neither secure_getenv nor __secure_getenv is available ++# define secure_getenv getenv + # endif + #endif + +--- a/src/systemd/src/systemd/sd-event.h ++++ b/src/systemd/src/systemd/sd-event.h +@@ -69,11 +69,7 @@ + typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata); + typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata); + typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata); +-#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED + typedef int (*sd_event_child_handler_t)(sd_event_source *s, const siginfo_t *si, void *userdata); +-#else +-typedef void* sd_event_child_handler_t; +-#endif + + int sd_event_default(sd_event **e); + |