Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2019 06:53:54 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494778 - in head/databases/pglogical: . files
Message-ID:  <201903060653.x266rsFd042205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: matthew
Date: Wed Mar  6 06:53:54 2019
New Revision: 494778
URL: https://svnweb.freebsd.org/changeset/ports/494778

Log:
  Fix compilation with postgresql11.  With previous versions of
  postgresql, <arpa/inet.h> was included automatically as part of the
  postgres module building environment.  But it needs to be included
  explicitly for the most recent postgres.
  
  Submitted by:	andriy@irbisnet.com

Added:
  head/databases/pglogical/files/extra-patch-pglogical__apply__spi.c   (contents, props changed)
Modified:
  head/databases/pglogical/Makefile

Modified: head/databases/pglogical/Makefile
==============================================================================
--- head/databases/pglogical/Makefile	Wed Mar  6 06:46:24 2019	(r494777)
+++ head/databases/pglogical/Makefile	Wed Mar  6 06:53:54 2019	(r494778)
@@ -36,6 +36,10 @@ PLIST_SUB+=	PGSQL94=""
 PLIST_SUB+=	PGSQL94="@comment "
 .endif
 
+.if ${PGSQL_VER} >= 11
+EXTRA_PATCHES=	${PATCHDIR}/extra-patch-pglogical__apply__spi.c
+.endif
+
 # FFI
 #TEST_DEPENDS=	pg_regress:databases/postgresql${PGSQL_VER_NODOT}-pg_regress
 #TEST_TARGET=	do-test

Added: head/databases/pglogical/files/extra-patch-pglogical__apply__spi.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pglogical/files/extra-patch-pglogical__apply__spi.c	Wed Mar  6 06:53:54 2019	(r494778)
@@ -0,0 +1,10 @@
+--- pglogical_apply_spi.c.orig	2019-03-06 06:44:31 UTC
++++ pglogical_apply_spi.c
+@@ -16,6 +16,7 @@
+  */
+ #include <stdio.h>
+ #include <unistd.h>
++#include <arpa/inet.h>
+ 
+ #include "postgres.h"
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903060653.x266rsFd042205>