Differential D10169 Diff 27011 graphics/digikam/files/patch-core_libs_kmemoryinfo_kmemoryinfo__backend.cpp
Changeset View
Changeset View
Standalone View
Standalone View
graphics/digikam/files/patch-core_libs_kmemoryinfo_kmemoryinfo__backend.cpp
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- core/libs/kmemoryinfo/kmemoryinfo_backend.cpp.orig 2016-11-06 10:43:01 UTC | |||||
+++ core/libs/kmemoryinfo/kmemoryinfo_backend.cpp | |||||
@@ -117,7 +117,7 @@ kvm_t* sg_get_kvm() | |||||
return kvmd; | |||||
} | |||||
- kvmd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, NULL); | |||||
+ kvmd = kvm_openfiles(NULL, "/dev/null", NULL, O_RDONLY, NULL); | |||||
if (kvmd == NULL) | |||||
{ | |||||
@@ -219,9 +219,9 @@ int get_mem_stats(Digikam::KMemoryInfo:: | |||||
int mib[2]; | |||||
u_long physmem; | |||||
size_t size; | |||||
- u_long free_count; | |||||
- u_long cache_count; | |||||
- u_long inactive_count; | |||||
+ u_int free_count; | |||||
+ u_int cache_count; | |||||
+ u_int inactive_count; | |||||
int pagesize; | |||||
#endif // defined(Q_OS_FREEBSD) || defined(Q_OS_DFBSD) | |||||