module/network: thrd_t isn't an integer in musl

This commit is contained in:
Daniel Eklöf 2019-01-20 14:30:39 +01:00
parent 6c9f8777b3
commit 9e2ebf3cab

View file

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
@ -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 */