[6/6] core: define SO_PEERCRED if it's not defined

Submitted by Leonid Bobrov on Feb. 8, 2019, 5:28 p.m.

Details

Message ID 20190208172817.16445-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. 8, 2019, 5:28 p.m.
---
 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.