$OpenBSD: patch-src_interfaces_ecpg_compatlib_Makefile,v 1.6 2011/09/23 09:46:14 pea Exp $
--- src/interfaces/ecpg/compatlib/Makefile.orig	Mon Mar 28 15:42:09 2011
+++ src/interfaces/ecpg/compatlib/Makefile	Wed Apr  6 09:13:17 2011
@@ -14,8 +14,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= ecpg_compat
-SO_MAJOR_VERSION= 3
-SO_MINOR_VERSION= 3
+SO_MAJOR_VERSION= ${LIBecpg_compat_MAJOR}
+SO_MINOR_VERSION= ${LIBecpg_compat_MINOR}
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
 	-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
