diff options
Diffstat (limited to 'meta-multimedia/recipes-mediacenter/kodi/kodi-17/0002-Remove-FILEWRAP.patch')
| -rw-r--r-- | meta-multimedia/recipes-mediacenter/kodi/kodi-17/0002-Remove-FILEWRAP.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-mediacenter/kodi/kodi-17/0002-Remove-FILEWRAP.patch b/meta-multimedia/recipes-mediacenter/kodi/kodi-17/0002-Remove-FILEWRAP.patch new file mode 100644 index 0000000000..463a5c4f81 --- /dev/null +++ b/meta-multimedia/recipes-mediacenter/kodi/kodi-17/0002-Remove-FILEWRAP.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From ad1977a358319093b305df6d84be6db676ef1e4a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 6 Nov 2016 22:35:16 -0800 | ||
| 4 | Subject: [PATCH 02/10] Remove FILEWRAP | ||
| 5 | |||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 7 | --- | ||
| 8 | xbmc/utils/posix/PosixInterfaceForCLog.cpp | 6 +----- | ||
| 9 | xbmc/utils/posix/PosixInterfaceForCLog.h | 4 +--- | ||
| 10 | 2 files changed, 2 insertions(+), 8 deletions(-) | ||
| 11 | |||
| 12 | Index: git/xbmc/utils/posix/PosixInterfaceForCLog.cpp | ||
| 13 | =================================================================== | ||
| 14 | --- git.orig/xbmc/utils/posix/PosixInterfaceForCLog.cpp | ||
| 15 | +++ git/xbmc/utils/posix/PosixInterfaceForCLog.cpp | ||
| 16 | @@ -29,10 +29,6 @@ | ||
| 17 | #include "platform/android/activity/XBMCApp.h" | ||
| 18 | #endif // TARGET_ANDROID | ||
| 19 | |||
| 20 | -struct FILEWRAP : public FILE | ||
| 21 | -{}; | ||
| 22 | - | ||
| 23 | - | ||
| 24 | CPosixInterfaceForCLog::CPosixInterfaceForCLog() : | ||
| 25 | m_file(NULL) | ||
| 26 | { } | ||
| 27 | @@ -52,7 +48,7 @@ bool CPosixInterfaceForCLog::OpenLogFile | ||
| 28 | (void)remove(backupOldLogToFilename.c_str()); // if it's failed, try to continue | ||
| 29 | (void)rename(logFilename.c_str(), backupOldLogToFilename.c_str()); // if it's failed, try to continue | ||
| 30 | |||
| 31 | - m_file = (FILEWRAP*)fopen(logFilename.c_str(), "wb"); | ||
| 32 | + m_file = fopen(logFilename.c_str(), "wb"); | ||
| 33 | if (!m_file) | ||
| 34 | return false; // error, can't open log file | ||
| 35 | |||
| 36 | Index: git/xbmc/utils/posix/PosixInterfaceForCLog.h | ||
| 37 | =================================================================== | ||
| 38 | --- git.orig/xbmc/utils/posix/PosixInterfaceForCLog.h | ||
| 39 | +++ git/xbmc/utils/posix/PosixInterfaceForCLog.h | ||
| 40 | @@ -34,5 +34,5 @@ public: | ||
| 41 | void PrintDebugString(const std::string& debugString); | ||
| 42 | static void GetCurrentLocalTime(int& hour, int& minute, int& second, double& millisecond); | ||
| 43 | private: | ||
| 44 | - FILEWRAP* m_file; | ||
| 45 | + FILE* m_file; | ||
| 46 | }; | ||
