summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRichard Markiewicz <rmarkiewicz@devolutions.net>2020-06-15 10:44:25 -0700
committerGarrett D'Amore <garrett@damore.org>2020-06-15 11:15:51 -0700
commit59301ab3f80991086519124d020edbe94a74615c (patch)
treeaf16a8b3dbf74457c7aee21f1ca32bb76ebaaaa1 /tests
parent2f288bddf5b501f029d080835f439ecd9c0eae47 (diff)
downloadnng-59301ab3f80991086519124d020edbe94a74615c.tar.gz
nng-59301ab3f80991086519124d020edbe94a74615c.tar.bz2
nng-59301ab3f80991086519124d020edbe94a74615c.zip
nng: support NNG_OPT_IPC_PEER_PID on modern macOS systems
Diffstat (limited to 'tests')
-rw-r--r--tests/ipc.c3
1 files changed, 2 insertions, 1 deletions
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