From 9e2ebf3cab9e5fe02b23783c2abefc17d4d5ad44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 20 Jan 2019 14:30:39 +0100 Subject: [PATCH] module/network: thrd_t isn't an integer in musl --- modules/network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/network.c b/modules/network.c index 6e5b7a6..a1f61a6 100644 --- a/modules/network.c +++ b/modules/network.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -122,7 +123,7 @@ content(struct module *mod) static uint32_t nl_pid_value(void) { - return thrd_current() ^ getpid(); + return (pid_t)(uintptr_t)thrd_current() ^ getpid(); } /* Connect and bind to netlink socket. Returns socket fd, or -1 on error */