[mythtv] Changes needed for Compilation on Cygwin

Robert Johnston anaerin at gmail.com
Thu Mar 23 03:39:45 UTC 2006


On 3/22/06, Robin Neatherway <robthebob at gmail.com> wrote:
> What release of mythtv are you using?
>
> Would you mind posting/emailing the patches you've made so far, and
> I'll have a wrestle from this end if I get a chance.

This is SVN rev. 9443

Diff (Which is only tiny) is below:

Index: libs/libmyth/mythmediamonitor.h
===================================================================
--- libs/libmyth/mythmediamonitor.h	(revision 9443)
+++ libs/libmyth/mythmediamonitor.h	(working copy)
@@ -1,7 +1,9 @@
 #ifndef MYTH_MEDIA_MONITOR_H
 #define MYTH_MEDIA_MONITOR_H

+#ifndef _WIN32
 #include <fstab.h>
+#endif

 #include <qvaluelist.h>
 #include <qguardedptr.h>
Index: libs/libmyth/util.cpp
===================================================================
--- libs/libmyth/util.cpp	(revision 9443)
+++ libs/libmyth/util.cpp	(working copy)
@@ -18,7 +18,9 @@
 #include <sys/sysinfo.h>
 #else
 #include <sys/param.h>
+#ifndef _WIN32
 #include <sys/sysctl.h>
+#endif
 #include <sys/mount.h>
 #endif

@@ -1001,6 +1003,7 @@
 long long getDiskSpace(const QString &file_on_disk,
                        long long &total, long long &used)
 {
+#ifndef _WIN32
     struct statfs statbuf;
     bzero(&statbuf, sizeof(statbuf));
     long long freespace = -1;
@@ -1020,8 +1023,10 @@
         total = statbuf.f_bsize * (statbuf.f_blocks >> 10);
         used  = total - freespace;
     }
-
     return freespace;
+#else
+    return false;
+#endif
 }

 /** \fn getMemStats(int&,int&,int&,int&)

--
Robert "Anaerin" Johnston


More information about the mythtv-dev mailing list