margro / xbmc

XBMC PVR Repository for the development of the MediaPortal and ForTheRecord pvr addons
http://www.scintilla.utwente.nl/~marcelg/xbmc/
Other
32 stars 14 forks source link

Small fix for tsreader on OSX #25

Closed TheChief79 closed 12 years ago

TheChief79 commented 12 years ago

Just a small fix to make the tsreader lib of the MediaPortal compile under OSX.

--- a/xbmc/pvrclients/MediaPortal/lib/tsreader/FileSMB.h
+++ b/xbmc/pvrclients/MediaPortal/lib/tsreader/FileSMB.h
@@ -38,7 +38,8 @@ public:
   void Deinit();
   void Purge();
   //void PurgeEx(const CURL& url);
-#ifdef TARGET_LINUX
+#if defined(TARGET_LINUX) || defined(TARGET_DARWIN)
   void CheckIfIdle();
   void SetActivityTime();
   void AddActiveConnection();
@@ -52,7 +53,7 @@ private:
   SMBCCTX *m_context;
   CStdString m_strLastHost;
   CStdString m_strLastShare;
-#ifdef TARGET_LINUX
+#if defined(TARGET_LINUX) || defined(TARGET_DARWIN)
   int m_OpenConnections;
   unsigned int m_IdleTimeout;
 #endif
TheChief79 commented 12 years ago

Seems to be fixed. Thanks