From 35713efa025cd859f150949d9c5408f96f7564b9 Mon Sep 17 00:00:00 2001 From: Thomas Punt <tpunt@php.net> Date: Sun, 29 Apr 2018 17:34:03 +0100 Subject: [PATCH] The SO_PASSCRED constant is conditionally defined --- ext/sockets/tests/socket_cmsg_credentials.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/sockets/tests/socket_cmsg_credentials.phpt b/ext/sockets/tests/socket_cmsg_credentials.phpt index 922be0bb37..6fa2517db2 100644 --- a/ext/sockets/tests/socket_cmsg_credentials.phpt +++ b/ext/sockets/tests/socket_cmsg_credentials.phpt @@ -11,6 +11,9 @@ die('skip not for Microsoft Windows'); if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') { die('skip not for AIX'); } +if (!defined('SO_PASSCRED')) { +die('skip SO_PASSCRED is not defined'); +} --CLEAN-- <?php $path = __DIR__ . "/unix_sock"; -- 2.40.0