[PATCH v5 05/11] core: define SO_PEERCRED if it's not defined
Leonid Bobrov
mazocomp at disroot.org
Wed Feb 13 11:39:10 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 86685e0..08b38bd 100644
--- a/src/wayland-os.h
+++ b/src/wayland-os.h
@@ -41,6 +41,9 @@ wl_os_event_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