From 402860f443161ab9067486cd90f35819c387a326 Mon Sep 17 00:00:00 2001 From: Curtis Yung <6743839+curtis18@users.noreply.github.com> Date: Mon, 14 Oct 2019 12:08:46 +0800 Subject: [PATCH 1/2] fix compiling issue --- swoole_postgresql_coro.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swoole_postgresql_coro.h b/swoole_postgresql_coro.h index 9be3b31..1f25481 100644 --- a/swoole_postgresql_coro.h +++ b/swoole_postgresql_coro.h @@ -20,8 +20,8 @@ #include "ext/swoole/php_swoole_cxx.h" #include "config.h" -#include -//#include +//#include +#include enum query_type { From 163b37c035aed4123848d1c3a746fe6d74f07d3c Mon Sep 17 00:00:00 2001 From: Curtis Yung <6743839+curtis18@users.noreply.github.com> Date: Mon, 14 Oct 2019 16:10:05 +0800 Subject: [PATCH 2/2] fix compiling issue fix compiling issue --- swoole_postgresql_coro.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/swoole_postgresql_coro.h b/swoole_postgresql_coro.h index 1f25481..0facc6e 100644 --- a/swoole_postgresql_coro.h +++ b/swoole_postgresql_coro.h @@ -20,8 +20,13 @@ #include "ext/swoole/php_swoole_cxx.h" #include "config.h" -//#include +#ifdef __APPLE__ +#include +#endif + +#ifdef __linux__ #include +#endif enum query_type {