$OpenBSD: patch-src_interfaces_ecpg_pgtypeslib_Makefile,v 1.7 2012/09/24 19:57:02 pea Exp $
--- src/interfaces/ecpg/pgtypeslib/Makefile.orig	Fri May 11 00:35:09 2012
+++ src/interfaces/ecpg/pgtypeslib/Makefile	Tue May 15 10:26:32 2012
@@ -14,8 +14,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= pgtypes
-SO_MAJOR_VERSION= 3
-SO_MINOR_VERSION= 3
+SO_MAJOR_VERSION= ${LIBpgtypes_MAJOR}
+SO_MINOR_VERSION= ${LIBpgtypes_MINOR}
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
 	-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
