[PATCH v4 06/10] core: define SO_PEERCRED if it's not defined
Leonid Bobrov
mazocomp at disroot.org
Sat Feb 9 09:16:41 UTC 2019
Signed-off-by: Leonid Bobrov <mazocomp at disroot.org>
---
src/wayland-os.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/wayland-os.h b/src/wayland-os.h
index 321e34d..28e3350 100644
--- a/src/wayland-os.h
+++ b/src/wayland-os.h
@@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void);
int
wl_os_accept_cloexec(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
+#ifndef SO_PEERCRED
+#define SO_PEERCRED LOCAL_PEERCRED
+#endif
/*
* The following are for wayland-os.c and the unit tests.
--
2.20.1
More information about the wayland-devel
mailing list