forked from DonVla/xbmc-svn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
projectM.diff
26 lines (23 loc) · 834 Bytes
/
projectM.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.cpp
===================================================================
--- xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.cpp (revisione 26936)
+++ xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.cpp (copia locale)
@@ -77,11 +77,19 @@
return; // no files loaded. m_entries is empty
}
- struct dirent * dir_entry;
+ #ifdef LINUX
+ struct dirent64 * dir_entry;
+ #else
+ struct dirent * dir_entry;
+ #endif
std::set<std::string> alphaSortedFileSet;
std::set<std::string> alphaSortedPresetNameSet;
- while ((dir_entry = readdir(m_dir)) != NULL)
+ #ifdef LINUX
+ while ((dir_entry = readdir64(m_dir)) != NULL)
+ #else
+ while ((dir_entry = readdir(m_dir)) != NULL)
+ #endif
{
std::ostringstream out;