freebsd-ports/graphics/gimp-gmic-plugin/files/patch-gmic__gimp.cpp
Ruslan Makhmatkhanov 2879f6e4df graphics/gimp-gmic-plugin: update to 1.6.9
This update also solving problem with presets downloading,
mentioned in PR.

PR:		205257
MFH:		2016Q1
2016-03-22 21:57:05 +00:00

13 lines
597 B
C++

--- gmic_gimp.cpp.orig 2016-02-05 13:45:21 UTC
+++ gmic_gimp.cpp
@@ -2724,10 +2724,6 @@ void process_image(const char *const com
PROCESS_MEMORY_COUNTERS pmc;
if (GetProcessMemoryInfo(GetCurrentProcess(),&pmc,sizeof(pmc)))
used_memory = (unsigned long)(pmc.WorkingSetSize/1024/1024);
-#elif cimg_OS==1 // #if cimg_OS==2
- CImg<char> st; st.load_raw("/proc/self/status",512); st.back() = 0;
- const char *const s = std::strstr(st,"VmRSS:");
- if (s && cimg_sscanf(s + 7,"%u",&used_memory)==1) used_memory/=1024;
#endif // #if cimg_OS==2
}