Add SOL_LOCAL symbolic constant for unix socket option level.

The constant seems to exists on MacOS X >= 10.8.

Requested by:	swills
Reviewed by:	allanjude, kevans
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D25933
This commit is contained in:
Konstantin Belousov 2020-08-03 22:13:02 +00:00 committed by Sebastian Huber
parent c95c267a46
commit 941cda2c16
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ struct sockaddr_un {
#if __BSD_VISIBLE
#define SOL_LOCAL 0 /* Options for local socket */
/* Socket options. */
#define LOCAL_PEERCRED 1 /* retrieve peer credentials */
#define LOCAL_CREDS 2 /* pass credentials to receiver */