$OpenBSD: patch-src_interfaces_ecpg_pgtypeslib_Makefile,v 1.4 2008/03/24 17:26:12 simon Exp $
--- src/interfaces/ecpg/pgtypeslib/Makefile.orig	Fri Oct  5 03:51:40 2007
+++ src/interfaces/ecpg/pgtypeslib/Makefile	Tue Nov 27 15:38:30 2007
@@ -14,8 +14,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= pgtypes
-SO_MAJOR_VERSION= 3
-SO_MINOR_VERSION= 0
+SO_MAJOR_VERSION= ${LIBpgtypes_MAJOR}
+SO_MINOR_VERSION= ${LIBpgtypes_MINOR}
 DLTYPE= library
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
