summaryrefslogtreecommitdiff
path: root/databases/py-PyGreSQL/files/patch-pgmodule.c
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-09-02 15:58:33 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-09-02 15:58:33 +0000
commit2cdc9fb6dce638a69ee731eacf5c2f4d3935ba5e (patch)
tree39af4087ce3083ef061c9285ec73de22272508d9 /databases/py-PyGreSQL/files/patch-pgmodule.c
parentFix the bus error on startup in -CURRENT and 5.x-BETA. It turns out (diff)
Update to 3.5
Allow building with postgresql client only installation. PR: 71212 Submitted by: Palle Girgensohn <girgen@pingpong.net>
Notes
Notes: svn path=/head/; revision=117948
Diffstat (limited to 'databases/py-PyGreSQL/files/patch-pgmodule.c')
-rw-r--r--databases/py-PyGreSQL/files/patch-pgmodule.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/py-PyGreSQL/files/patch-pgmodule.c b/databases/py-PyGreSQL/files/patch-pgmodule.c
new file mode 100644
index 000000000000..1d185cf8f10b
--- /dev/null
+++ b/databases/py-PyGreSQL/files/patch-pgmodule.c
@@ -0,0 +1,24 @@
+--- pgmodule.c~ Tue Jan 13 13:29:57 2004
++++ pgmodule.c Sat Aug 28 16:41:56 2004
+@@ -27,10 +27,19 @@
+ */
+
+ #include <Python.h>
+-#include "postgres.h"
++
++/* defines snatched from "catalog/pg_type.h" */
++#define INT2OID 21
++#define INT4OID 23
++#define INT8OID 20
++#define OIDOID 26
++#define FLOAT4OID 700
++#define FLOAT8OID 701
++#define NUMERICOID 1700
++#define CASHOID 790
++
+ #include "libpq-fe.h"
+ #include "libpq/libpq-fs.h"
+-#include "catalog/pg_type.h"
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>