summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-swoole-dev.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/php-pecl-swoole-dev.spec b/php-pecl-swoole-dev.spec
index a2d8174..80b01a8 100644
--- a/php-pecl-swoole-dev.spec
+++ b/php-pecl-swoole-dev.spec
@@ -165,6 +165,11 @@ peclbuild() {
--enable-openssl \
--with-openssl \
--enable-sockets \
+%if "%{php_version}" > "5.5"
+ --enable-coroutine \
+%else
+ --disable-coroutine \
+%endif
%if %{with_nghttpd2}
--enable-http2 \
%endif