even more kio fixes for MSVC

Michael Drüing michael at drueing.de
Wed Apr 12 01:56:58 CEST 2006


I should have waited with my previous mail.

Here are some more fixes for kio. The authinfo.cpp is especially
interesting, because it already includes sys/stat.h. However, the S_I????
constants are not defined when they're used. Moving the #include a few lines
up fixes that. Seems like something #undef's the constants again.

--Michael

Index: kio/kio/kmimemagic.cpp
===================================================================
--- kio/kio/kmimemagic.cpp      (revision 528836)
+++ kio/kio/kmimemagic.cpp      (working copy)
@@ -23,6 +23,7 @@

 #include "kmimemagic.h"

+#include <sys/stat.h>
 #include <qfile.h>

 #include <kdebug.h>
Index: kio/kio/authinfo.cpp
===================================================================
--- kio/kio/authinfo.cpp        (revision 528836)
+++ kio/kio/authinfo.cpp        (working copy)
@@ -22,10 +22,10 @@
 #include <config.h>
 #endif

+#include <sys/stat.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include <sys/stat.h>
 #include <sys/types.h>

 #include <qbytearray.h>
Index: kio/kfile/kpropertiesdialog.cpp
===================================================================
--- kio/kfile/kpropertiesdialog.cpp     (revision 528836)
+++ kio/kfile/kpropertiesdialog.cpp     (working copy)
@@ -46,6 +46,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <time.h>
+#include <sys/stat.h>
 #include <sys/types.h>
 }
 #include <unistd.h>



More information about the Kde-buildsystem mailing list