Skip to content
Permalink
Browse files

abiword-x11: Fix build with clang 8+

  • Loading branch information...
ryandesign committed Oct 9, 2019
1 parent 9e40a5a commit b573367d90439b252917389dd03627acb2e48bd3
Showing with 15 additions and 1 deletion.
  1. +2 −1 editors/abiword-x11/Portfile
  2. +13 −0 editors/abiword-x11/files/c++11.patch
@@ -25,7 +25,8 @@ checksums rmd160 fde551492b0cffa7d522082906f374490bd47f5c \
distname ${dname}-${version}

patchfiles patch-configure.diff \
patch-jpeg_read_header.diff
patch-jpeg_read_header.diff \
c++11.patch

depends_build port:pkgconfig

@@ -0,0 +1,13 @@
Fix build failure with clang 8+:
error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
--- src/wp/ap/gtk/ap_UnixApp.cpp.orig 2016-10-10 15:21:05.000000000 -0500
+++ src/wp/ap/gtk/ap_UnixApp.cpp 2019-10-09 09:42:29.000000000 -0500
@@ -863,7 +863,7 @@
if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename
return false;
const char *suffix = file+(len-3);
- if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
+ if(0 == strcmp (suffix, "." G_MODULE_SUFFIX))
return true;
return false;
}

0 comments on commit b573367

Please sign in to comment.
You can’t perform that action at this time.