fix freebsd build

This commit is contained in:
Alexander Skovpen 2018-09-04 09:45:22 +03:00 committed by dukelsky
parent a9c11a472c
commit dbea29951d
2 changed files with 7 additions and 5 deletions

View File

@ -56,7 +56,9 @@ endif()
set (CPACK_PACKAGE_VERSION_MAJOR "1") set (CPACK_PACKAGE_VERSION_MAJOR "1")
set (CPACK_PACKAGE_VERSION_MINOR "1") set (CPACK_PACKAGE_VERSION_MINOR "1")
file(READ srcdate.h CPACK_PACKAGE_VERSION_PATCH LIMIT 8 OFFSET 41) file(READ srcdate.h srcdate)
string(SUBSTRING ${CPACK_PACKAGE_VERSION_PATCH} 0 8 CPACK_PACKAGE_VERSION_PATCH) string(REPLACE "\n" ";" LINES ${srcdate})
list(GET LINES 1 LINETWO)
string(SUBSTRING ${LINETWO} 21 8 CPACK_PACKAGE_VERSION_PATCH)
set(CPACK_PACKAGE_VERSION_PATCH "5-${CPACK_PACKAGE_VERSION_PATCH}") set(CPACK_PACKAGE_VERSION_PATCH "5-${CPACK_PACKAGE_VERSION_PATCH}")
INCLUDE(CPack) INCLUDE(CPack)

View File

@ -25,7 +25,7 @@ public:
struct hentry * check(const char * word, int len, char in_compound, struct hentry * check(const char * word, int len, char in_compound,
const FLAG needflag = FLAG_NULL); const FLAG needflag = FLAG_NULL);
struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = FLAG_NULL);
char * check_morph(const char * word, int len, char in_compound, char * check_morph(const char * word, int len, char in_compound,
const FLAG needflag = FLAG_NULL); const FLAG needflag = FLAG_NULL);
@ -86,7 +86,7 @@ public:
AffEntry* ppfx, char ** wlst, int maxSug, int * ns, AffEntry* ppfx, char ** wlst, int maxSug, int * ns,
const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL); const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL);
struct hentry * check_twosfx(const char * word, int len, int optflags, AffEntry* ppfx, const FLAG needflag = NULL); struct hentry * check_twosfx(const char * word, int len, int optflags, AffEntry* ppfx, const FLAG needflag = FLAG_NULL);
char * check_twosfx_morph(const char * word, int len, int optflags, char * check_twosfx_morph(const char * word, int len, int optflags,
AffEntry* ppfx, const FLAG needflag = FLAG_NULL); AffEntry* ppfx, const FLAG needflag = FLAG_NULL);