From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 4004E385BADA; Mon, 11 Jul 2022 11:52:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4004E385BADA Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add SOL_LOCAL symbolic constant for unix socket option level. X-Act-Checkin: newlib-cygwin X-Git-Author: Konstantin Belousov X-Git-Refname: refs/heads/master X-Git-Oldrev: c95c267a461475c6c2bac5c3f23c567e5360589c X-Git-Newrev: 941cda2c162bb57414527b967ef1060c8c91f379 Message-Id: <20220711115209.4004E385BADA@sourceware.org> Date: Mon, 11 Jul 2022 11:52:09 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 11:52:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D941cda2c162= bb57414527b967ef1060c8c91f379 commit 941cda2c162bb57414527b967ef1060c8c91f379 Author: Konstantin Belousov Date: Mon Aug 3 22:13:02 2020 +0000 Add SOL_LOCAL symbolic constant for unix socket option level. =20 The constant seems to exists on MacOS X >=3D 10.8. =20 Requested by: swills Reviewed by: allanjude, kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25933 Diff: --- newlib/libc/sys/rtems/include/sys/un.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/sys/rtems/include/sys/un.h b/newlib/libc/sys/rtems= /include/sys/un.h index 3c408628c..3a011aeef 100644 --- a/newlib/libc/sys/rtems/include/sys/un.h +++ b/newlib/libc/sys/rtems/include/sys/un.h @@ -62,6 +62,8 @@ struct sockaddr_un { =20 #if __BSD_VISIBLE =20 +#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 */