Ticket #13648: 20200713_1538_mythtv_firesticknon4k.patch

File 20200713_1538_mythtv_firesticknon4k.patch, 937 bytes (added by Peter Bennett, 4 years ago)

Patch for MythTV source to take care of ftello and fseeko

  • mythtv/libs/libmythbase/mythcommandlineparser.cpp

    diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
    index 8fd5f8fcd4..90f9ce7a7e 100644
    a b  
    2020* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
    2121*/
    2222
     23#if defined ANDROID && __ANDROID_API__ < 24
     24#define ftello ftell
     25#define fseeko fseek
     26#endif
    2327// C++ headers
    2428#include <algorithm>
    2529#include <csignal>
  • mythtv/programs/mythcommflag/main.cpp

    diff --git a/mythtv/programs/mythcommflag/main.cpp b/mythtv/programs/mythcommflag/main.cpp
    index 63be4f7c36..41d59a9827 100644
    a b  
     1#if defined ANDROID && __ANDROID_API__ < 24
     2#define ftello ftell
     3#define fseeko fseek
     4#endif
     5
    16// POSIX headers
    27#include <unistd.h>
    38#include <sys/time.h> // for gettimeofday