Fixed #979. Patch for NetBSD.
authorZhang Xianyi <traits.zhang@gmail.com>
Thu, 13 Oct 2016 02:17:07 +0000 (10:17 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Thu, 13 Oct 2016 02:17:07 +0000 (10:17 +0800)
driver/others/memory.c

index e89f5c3..572533f 100644 (file)
@@ -169,7 +169,7 @@ void goto_set_num_threads(int num_threads) {};
 
 #else
 
-#if defined(OS_LINUX) || defined(OS_SUNOS)
+#if defined(OS_LINUX) || defined(OS_SUNOS) || defined(OS_NETBSD)
 #ifndef NO_AFFINITY
 int get_num_procs(void);
 #else