forked from Lainports/freebsd-ports
Use std::isspace instead of isspace to fix the following compile error in
py-fst:
In file included from fst/_fst.cpp:322:
In file included from /usr/local/include/fst/fstlib.h:49:
In file included from /usr/local/include/fst/fst.h:34:
In file included from /usr/local/include/fst/arc.h:31:
In file included from /usr/local/include/fst/power-weight.h:24:
/usr/local/include/fst/tuple-weight.h:179:14: error: call to 'isspace' is ambiguous
} while (isspace(c));
^~~~~~~
/usr/include/ctype.h:57:5: note: candidate function
int isspace(int);
^
/usr/include/c++/v1/cctype:125:38: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY int isspace(int __c) {return __libcpp_isspace(__c);}
/usr/include/ctype.h:57:5: note: candidate function
int isspace(int);
^
/usr/include/c++/v1/cctype:125:38: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY int isspace(int __c) {return __libcpp_isspace(__c);}
This commit is contained in:
parent
dd3baef728
commit
97ca34aaa4
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= openfst
|
||||
PORTVERSION= 1.4.1
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://www.openfst.org/twiki/pub/FST/FstDownload/
|
||||
|
||||
|
|
@ -19,5 +19,6 @@ CONFIGURE_ARGS+=--enable-compact-fsts --enable-const-fsts --enable-far --enable-
|
|||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e s#-ldl## ${WRKSRC}/src/extensions/far/Makefile.in ${WRKSRC}/src/extensions/pdt/Makefile.in ${WRKSRC}/src/bin/Makefile.in ${WRKSRC}/src/test/Makefile.in ${WRKSRC}/src/extensions/linear/Makefile.in
|
||||
${REINPLACE_CMD} -e s#isspace#std::isspace# ${WRKSRC}/src/include/fst/tuple-weight.h ${WRKSRC}/src/include/fst/sparse-tuple-weight.h ${WRKSRC}/src/include/fst/pair-weight.h
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue