浏览代码

Only include for macos. Resolves #232.

Brucey 3 年之前
父节点
当前提交
5186300524
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      platform.mod/glue.c

+ 2 - 0
platform.mod/glue.c

@@ -21,7 +21,9 @@
     distribution.
     distribution.
 */
 */
 #include <unistd.h>
 #include <unistd.h>
+#ifdef __APPLE__
 #include <sys/sysctl.h>
 #include <sys/sysctl.h>
+#endif
 
 
 int bmx_os_getproccount() {
 int bmx_os_getproccount() {
 	int procCount = 0;
 	int procCount = 0;