[BACK]Return to patch-festival_src_modules_hts__engine_HTS__misc.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / festival / patches

File: [cvs.NetBSD.org] / pkgsrc / audio / festival / patches / patch-festival_src_modules_hts__engine_HTS__misc.c (download)

Revision 1.2, Wed Nov 27 14:44:05 2019 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
Changes since 1.1: +2 -2 lines

festival: handle fpos_t on sunos

$NetBSD: patch-festival_src_modules_hts__engine_HTS__misc.c,v 1.2 2019/11/27 14:44:05 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__) || defined(__sun)
       return (size_t) pos;
+#elif defined(__NetBSD__)
+      return (size_t) pos._pos;
 #else
       return (size_t) pos.__pos;
 #endif                          /* _WIN32 || __APPLE__ */