$OpenBSD: patch-src_interfaces_ecpg_pgtypeslib_Makefile,v 1.3 2007/01/17 16:47:25 mbalmer Exp $
--- src/interfaces/ecpg/pgtypeslib/Makefile.orig	Mon Aug 28 18:13:11 2006
+++ src/interfaces/ecpg/pgtypeslib/Makefile	Mon Jan 15 18:11:54 2007
@@ -13,8 +13,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= pgtypes
-SO_MAJOR_VERSION= 2
-SO_MINOR_VERSION= 2
+SO_MAJOR_VERSION= ${LIBpgtypes_MAJOR}
+SO_MINOR_VERSION= ${LIBpgtypes_MINOR}
 DLTYPE= library
 
 override CPPFLAGS := -DFRONTEND \
