Fix build on powerpc64

PR:		240088
Submitted by:	pkubaj
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-09-03 19:12:51 +00:00
parent eefe67ff83
commit 4b98557743
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511027
2 changed files with 14 additions and 1 deletions

View file

@ -14,7 +14,7 @@ COMMENT= Perl Interface to the Google LevelDB NoSQL database
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
NOT_FOR_ARCHS= aarch64 powerpc powerpc64 powerpcspe
NOT_FOR_ARCHS= aarch64 powerpc powerpcspe
NOT_FOR_ARCHS_REASON= does not build: Please implement AtomicPointer for this platform
BROKEN_sparc64= does not build: unrecognized command line options
@ -29,6 +29,8 @@ MAKE_ARGS= CC="${CXX}"
.if ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-reserved-user-defined-literal
.else
CFLAGS+= -DLEVELDB_CSTDATOMIC_PRESENT
.endif
post-patch:

View file

@ -0,0 +1,11 @@
--- port/atomic_pointer.h.orig 2019-08-25 00:44:43 UTC
+++ port/atomic_pointer.h
@@ -21,7 +21,7 @@
#include <stdint.h>
#ifdef LEVELDB_CSTDATOMIC_PRESENT
-#include <cstdatomic>
+#include <atomic>
#endif
#ifdef OS_WIN
#include <windows.h>