[v4,06/10] core: define SO_PEERCRED if it's not defined

Submitted by Leonid Bobrov on Feb. 9, 2019, 9:16 a.m.

Details

Message ID 20190209091645.57153-6-mazocomp@disroot.org
State Superseded
Headers show
Series "Series without cover letter" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Leonid Bobrov Feb. 9, 2019, 9:16 a.m.
Signed-off-by: Leonid Bobrov <mazocomp@disroot.org>
---
 src/wayland-os.h | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

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.