Committed by Greg Sabino Mullane <[email protected]>

Provide a manual PGRES_COPY_BOTH in case compiling against an older libpq.

---
 Pg.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Pg.h b/Pg.h
index 1b324df..e6f8ab4 100644
--- a/Pg.h
+++ b/Pg.h
@@ -42,6 +42,10 @@ static int errno;
 #define INV_WRITE 0x00020000
 #endif
 
+#ifndef PGRES_COPY_BOTH
+#define PGRES_COPY_BOTH 8
+#endif
+
 #ifdef BUFSIZ
 #undef BUFSIZ
 #endif
-- 
1.7.0.5

Reply via email to