testing: attempt to fix clang-7
authorMichael Wallner <mike@php.net>
Mon, 5 Oct 2020 08:17:17 +0000 (10:17 +0200)
committerMichael Wallner <mike@php.net>
Mon, 5 Oct 2020 08:17:17 +0000 (10:17 +0200)
test/lib/Server.hpp

index b90ac8d7a4a38943695aca5a0b8ad4309b31411e..bfbab812259a44ec14118fa221d577009368874f 100644 (file)
@@ -33,7 +33,12 @@ public:
     pipe = exchange(s.pipe, -1);
     status = exchange(s.status, 0);
     signalled = exchange(s.signalled, {});
+#if __clang__ && __clang_major__ <= 7
+    socket_or_port = s.socket_or_port;
+    s.socket_or_port = 11211;
+#else
     socket_or_port = exchange(s.socket_or_port, 11211);
+#endif
     output = exchange(s.output, {});
     return *this;
   };