Squashed 'rtengine/libraw/' content from commit cccb97647
git-subtree-dir: rtengine/libraw git-subtree-split: cccb97647fcee56801fa68231fa8a38aa8b52ef7
This commit is contained in:
15
RawSpeed/rawspeed.cpucount-unix.patch
Normal file
15
RawSpeed/rawspeed.cpucount-unix.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/RawSpeed/Common.cpp b/RawSpeed/Common.cpp
|
||||
index abec232..6990c04 100644
|
||||
--- a/RawSpeed/Common.cpp
|
||||
+++ b/RawSpeed/Common.cpp
|
||||
@@ -31,5 +31,10 @@ void* _aligned_malloc(size_t bytes, size_t alignment) {
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
+#include <unistd.h>
|
||||
+int rawspeed_get_number_of_processor_cores()
|
||||
+{
|
||||
+ return sysconf( _SC_NPROCESSORS_ONLN );
|
||||
+}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user