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 */