diff options
Diffstat (limited to 'psycopg/python.h')
-rw-r--r-- | psycopg/python.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h index 6faa5b9..b514c2c 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -27,6 +27,9 @@ #define PSYCOPG_PYTHON_H 1 #include <structmember.h> +#if PY_MAJOR_VERSION < 3 +#include <stringobject.h> +#endif #if PY_VERSION_HEX < 0x02040000 # error "psycopg requires Python >= 2.4" |