File libqtpod-gcc47.patch of Package libqtpod
Index: libqtpod-0.4.2/src/itunesdbwriter.cpp
===================================================================
--- libqtpod-0.4.2.orig/src/itunesdbwriter.cpp
+++ libqtpod-0.4.2/src/itunesdbwriter.cpp
@@ -31,6 +31,8 @@
#ifdef WIN32
#include <Windows.h>
+#else
+#include <unistd.h> // for fsync()
#endif
#if QT_VERSION >= 0x040000
Index: libqtpod-0.4.2/src/utils.h
===================================================================
--- libqtpod-0.4.2.orig/src/utils.h
+++ libqtpod-0.4.2/src/utils.h
@@ -673,7 +673,7 @@ public:
if ( m_deleteElements ) {
delete *posIter;
}
- erase( posIter );
+ this->erase( posIter );
return true;
}