$OpenBSD: patch-src_interfaces_ecpg_pgtypeslib_Makefile,v 1.3 2018/02/18 17:36:01 sthen Exp $
Index: src/interfaces/ecpg/pgtypeslib/Makefile
--- src/interfaces/ecpg/pgtypeslib/Makefile.orig
+++ src/interfaces/ecpg/pgtypeslib/Makefile
@@ -15,8 +15,9 @@ include $(top_builddir)/src/Makefile.global
 
 PGFILEDESC = "pgtypes - library for data type mapping"
 NAME= pgtypes
-SO_MAJOR_VERSION= 3
-SO_MINOR_VERSION= 7
+SO_MAJOR_VERSION= ${LIBpgtypes_MAJOR}
+SO_MINOR_VERSION= ${LIBpgtypes_MINOR}
+
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
 	-DFRONTEND $(CPPFLAGS)
