From a7f8a34917b52954b4a115b82b42f6cb045c7cea Mon Sep 17 00:00:00 2001 From: xiongkun Date: Tue, 13 Jun 2023 10:49:14 +0800 Subject: [PATCH] fix compile (#54568) --- paddle/fluid/pybind/jit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/jit.cc b/paddle/fluid/pybind/jit.cc index 99b71425334..31ec0774a23 100644 --- a/paddle/fluid/pybind/jit.cc +++ b/paddle/fluid/pybind/jit.cc @@ -15,9 +15,11 @@ limitations under the License. */ #include "paddle/fluid/pybind/jit.h" #include -#include #include +#if PY_VERSION_HEX < 0x030b0000 +#include +#endif #if PY_VERSION_HEX >= 0x030b0000 #include #endif -- GitLab