aboutsummaryrefslogtreecommitdiff
path: root/tests/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ipc.c')
-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