aboutsummaryrefslogtreecommitdiff
path: root/databases/libpg_query
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-06 22:01:47 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-06 22:01:47 +0000
commit22622d8a56058b1cead0bb4ccc1bc5afa501a195 (patch)
treeae92072b286479ca9caeab4f0a7a77a3ade970bf /databases/libpg_query
parent20b36b1f45fa73208b794228bc3d5649fd7f0d17 (diff)
Notes
Diffstat (limited to 'databases/libpg_query')
-rw-r--r--databases/libpg_query/Makefile2
-rw-r--r--databases/libpg_query/files/patch-src_postgres_include_port_atomics.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/databases/libpg_query/Makefile b/databases/libpg_query/Makefile
index 66f5eff3089b..f58667e4cf7d 100644
--- a/databases/libpg_query/Makefile
+++ b/databases/libpg_query/Makefile
@@ -12,7 +12,7 @@ COMMENT= C library for accessing the PostgreSQL parser outside of the server
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= gmake pgsql
+USES= compiler:c11 gmake pgsql
USE_LDCONFIG= yes
USE_GITHUB= yes
diff --git a/databases/libpg_query/files/patch-src_postgres_include_port_atomics.h b/databases/libpg_query/files/patch-src_postgres_include_port_atomics.h
new file mode 100644
index 000000000000..08ac7316914d
--- /dev/null
+++ b/databases/libpg_query/files/patch-src_postgres_include_port_atomics.h
@@ -0,0 +1,11 @@
+--- src/postgres/include/port/atomics.h.orig 2020-12-06 21:56:04 UTC
++++ src/postgres/include/port/atomics.h
+@@ -71,7 +71,7 @@
+ #elif defined(__ia64__) || defined(__ia64)
+ #include "port/atomics/arch-ia64.h"
+ #elif defined(__ppc__) || defined(__powerpc__) || defined(__ppc64__) || defined(__powerpc64__)
+-#include "port/atomics/arch-ppc.h"
++#include <postgresql/server/port/atomics/arch-ppc.h>
+ #elif defined(__hppa) || defined(__hppa__)
+ #include "port/atomics/arch-hppa.h"
+ #endif