festival: Commit a missing patch.

This commit is contained in:
nia 2019-09-11 10:03:17 +00:00
parent a183abe979
commit 8f20a0de48
2 changed files with 21 additions and 2 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.27 2019/09/07 13:00:48 nia Exp $
$NetBSD: distinfo,v 1.28 2019/09/11 10:03:17 nia Exp $
SHA1 (festival-2.5.0-release.tar.gz) = a433de2d1c344a1af63579e757551432abe583ca
RMD160 (festival-2.5.0-release.tar.gz) = 68f71e389f38c78863b15da319f16d21dcf27818
@ -13,9 +13,10 @@ SHA1 (patch-ab) = 7f22ea2a89caf72dcb18818eb98bdb54911d5e7c
SHA1 (patch-ac) = 9ffe5f44dc50d9ab5161b9ca107956e799fff463
SHA1 (patch-ae) = 9d630d198f829979508b90416ddb0f56d721b422
SHA1 (patch-aq) = 81109b22e5db0f733fa2a3d8e7cdef1cdcbe0185
SHA1 (patch-festival_src_modules_hts__engine_HTS__misc.c) = ee03faa0ac6db409e7352e0aad5ff64272d99e80
SHA1 (patch-festival_src_modules_hts__engine_HTS__misc.c) = d40659b50cee96030464a549625418895c79313f
SHA1 (patch-speech__tools_config_compilers_gcc__defaults.mak) = 0498a265d7f77b39503d5442cca0754ad72531a8
SHA1 (patch-speech__tools_config_modules_editline.mak) = 5386449fb61a1a0dfc3d5daed292917eb257fa3c
SHA1 (patch-speech__tools_config_rules_compile__options.mak) = d3aa93029edba84f8130f1bc33c8d74219bafd9a
SHA1 (patch-speech__tools_configure.in) = 58b3b3b6dfb2b085c638b3637ece67bb6e5b014e
SHA1 (patch-speech__tools_include_ling__class_EST__FeatureFunctionPackage.h) = ec5eb54fba5a50b43d1a0c9f0a5ae36407f55bff
SHA1 (patch-speech__tools_include_unix_EST__socket__unix.h) = f81c0cda0858d121e2d24182f39c7ab8fc673174

View file

@ -0,0 +1,18 @@
$NetBSD: patch-festival_src_modules_hts__engine_HTS__misc.c,v 1.1 2019/09/11 10:03:17 nia Exp $
Support NetBSD and FreeBSD.
--- festival/src/modules/hts_engine/HTS_misc.c.orig 2017-09-04 15:54:08.000000000 +0000
+++ festival/src/modules/hts_engine/HTS_misc.c
@@ -245,8 +245,10 @@ size_t HTS_ftell(HTS_File * fp)
} else if (fp->type == HTS_FILE) {
fpos_t pos;
fgetpos((FILE *) fp->pointer, &pos);
-#if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__)
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__FreeBSD__)
return (size_t) pos;
+#elif defined(__NetBSD__)
+ return (size_t) pos._pos;
#else
return (size_t) pos.__pos;
#endif /* _WIN32 || __APPLE__ */