diff --git a/psycopg/libpq_support.h b/psycopg/libpq_support.h index 77d7ab12..e57fae99 100644 --- a/psycopg/libpq_support.h +++ b/psycopg/libpq_support.h @@ -26,10 +26,10 @@ #define PSYCOPG_LIBPQ_SUPPORT_H 1 #include "psycopg/config.h" -#include "internal/c.h" -/* type and constant definitions from internal postgres includes not available otherwise */ +/* type and constant definitions from internal postgres include */ typedef unsigned PG_INT64_TYPE XLogRecPtr; +typedef uint32_t uint32; /* have to use lowercase %x, as PyString_FromFormat can't do %X */ #define XLOGFMTSTR "%x/%x" diff --git a/psycopg/replication_message_type.c b/psycopg/replication_message_type.c index 358d1497..b37c402e 100644 --- a/psycopg/replication_message_type.c +++ b/psycopg/replication_message_type.c @@ -49,9 +49,10 @@ static PyObject * replmsg_repr(replicationMessageObject *self) { return PyString_FromFormat( - "", + "", self, self->data_size, XLOGFMTARGS(self->data_start), XLOGFMTARGS(self->wal_end), - self->send_time); + (long int)self->send_time); } static int