diff --git a/paddle/fluid/pybind/jit.cc b/paddle/fluid/pybind/jit.cc index 99b714253347d7..31ec0774a231a9 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