From 59301ab3f80991086519124d020edbe94a74615c Mon Sep 17 00:00:00 2001 From: Richard Markiewicz Date: Mon, 15 Jun 2020 10:44:25 -0700 Subject: nng: support NNG_OPT_IPC_PEER_PID on modern macOS systems --- tests/ipc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ipc.c b/tests/ipc.c index 2446cda1..8abff2f6 100644 --- a/tests/ipc.c +++ b/tests/ipc.c @@ -63,7 +63,8 @@ check_props(nng_msg *msg) So(nng_pipe_getopt_uint64(p, NNG_OPT_IPC_PEER_GID, &id) == 0); So(id == (uint64_t) getgid()); -#if defined(NNG_HAVE_SOPEERCRED) || defined(NNG_HAVE_GETPEERUCRED) +#if defined(NNG_HAVE_SOPEERCRED) || defined(NNG_HAVE_GETPEERUCRED) || \ + (defined(NNG_HAVE_LOCALPEERCRED) && defined(NNG_HAVE_LOCALPEERPID)) So(nng_pipe_getopt_uint64(p, NNG_OPT_IPC_PEER_PID, &id) == 0); So(id == (uint64_t) getpid()); #else -- cgit v1.2.3-70-g09d2