浏览代码

Omit CPU pinning code on OpenBSD

Joseph Henry 10 月之前
父节点
当前提交
969c0ee6e3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      osdep/BSDEthernetTap.cpp

+ 2 - 0
osdep/BSDEthernetTap.cpp

@@ -431,6 +431,7 @@ void BSDEthernetTap::threadMain()
 	// constructing itself.
 	Thread::sleep(500);
 
+#ifndef __OpenBSD__
 	bool pinning = _pinning;
 
 	for (unsigned int i = 0; i < _concurrency; ++i) {
@@ -451,6 +452,7 @@ void BSDEthernetTap::threadMain()
 					exit(1);
 				}
 			}
+#endif // __OpenBSD__
 
 			uint8_t b[ZT_TAP_BUF_SIZE];
 			MAC to, from;