File: rawspeed.cpucount-unix.patch

package info (click to toggle)
libraw 0.19.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,396 kB
  • sloc: cpp: 39,147; ansic: 23,363; perl: 145; makefile: 87; sh: 77
file content (15 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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