Files
rawTherapee/RawSpeed/rawspeed.cpucount-unix.patch
Lawrence Lee 638ecc4cde Squashed 'rtengine/libraw/' content from commit cccb97647
git-subtree-dir: rtengine/libraw
git-subtree-split: cccb97647fcee56801fa68231fa8a38aa8b52ef7
2023-11-12 11:49:00 -08:00

16 lines
367 B
Diff

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