mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:58:11 +00:00
LibCore: Add OpenBSD headers to System and LocalSocket
Add the correct header to System.h and add OpenBSD-specific handling of signals and socket process id
This commit is contained in:
parent
f650efc76f
commit
ea0a002468
3 changed files with 5 additions and 2 deletions
|
@ -65,6 +65,9 @@ pid_t LocalSocket::peer_pid() const
|
|||
#elif defined(__FreeBSD__)
|
||||
struct xucred creds = {};
|
||||
socklen_t creds_size = sizeof(creds);
|
||||
#elif defined(__OpenBSD__)
|
||||
struct sockpeercred creds = {};
|
||||
socklen_t creds_size = sizeof(creds);
|
||||
#else
|
||||
struct ucred creds = {};
|
||||
socklen_t creds_size = sizeof(creds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue