[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdebase/kioslave/media
From: Stephan Kulow <coolo () kde ! org>
Date: 2007-01-25 12:16:37
Message-ID: 1169727397.361790.24381.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 627006 by coolo:
fix compilation without statvfs
M +3 -0 configure.in.in
M +8 -1 kfile-plugin/kfilemediaplugin.cpp
--- branches/KDE/3.5/kdebase/kioslave/media/configure.in.in #627005:627006
@@ -179,3 +179,6 @@
AM_CONDITIONAL(include_media_linuxcdpolling, test "$LINUXCDPOLLING" = "yes")
AM_CONDITIONAL(include_media_halbackend, test "$HALBACKEND" = yes)
+
+AC_CHECK_FUNCS(statvfs)
+
--- branches/KDE/3.5/kdebase/kioslave/media/kfile-plugin/kfilemediaplugin.cpp #627005:627006
@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
+#include "config.h"
#include "kfilemediaplugin.h"
#include <kgenericfactory.h>
@@ -29,7 +30,13 @@
#include <qapplication.h>
#include <qfile.h>
-#include <sys/statvfs.h>
+#ifdef HAVE_STATVFS
+# include <sys/statvfs.h>
+#else
+# include <sys/mount.h>
+# define statvfs statfs
+# define f_frsize f_bsize
+#endif
typedef KGenericFactory<KFileMediaPlugin> KFileMediaPluginFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_media, KFileMediaPluginFactory("kio_media"))
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic