forked from external/yambar
module/network: thrd_t isn't an integer in musl
This commit is contained in:
parent
6c9f8777b3
commit
9e2ebf3cab
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue