Commit 18bee21c authored by topjohnwu's avatar topjohnwu

Add support to build with NDK r10e

parent 84ca8e1f
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <selinux/selinux.h> #include <selinux/selinux.h>
#include <syscall.h>
#include "magisk.h" #include "magisk.h"
#include "utils.h" #include "utils.h"
...@@ -29,7 +28,7 @@ int socket_create_temp(char *path, size_t len) { ...@@ -29,7 +28,7 @@ int socket_create_temp(char *path, size_t len) {
memset(&sun, 0, sizeof(sun)); memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL; sun.sun_family = AF_LOCAL;
snprintf(path, len, "/dev/.socket%d", (int) syscall(SYS_gettid)); snprintf(path, len, "/dev/.socket%d", getpid());
strcpy(sun.sun_path, path); strcpy(sun.sun_path, path);
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment