From 6474f2593428d89ec152da2502aa136ababe66ca Mon Sep 17 00:00:00 2001
From: leper <blubblub@mail.ru>
Date: Wed, 16 Jan 2019 23:00:07 +0100
Subject: [PATCH] Don't include sys/sysctl.h on Linux.

Not only is sysctl() not used on this platform, but musl libc does not have the header.
---
 src/nvthread/nvthread.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/nvthread/nvthread.cpp b/src/nvthread/nvthread.cpp
index b727f2e..866593d 100644
--- a/src/nvthread/nvthread.cpp
+++ b/src/nvthread/nvthread.cpp
@@ -8,7 +8,9 @@
 #include "Win32.h"
 #elif NV_OS_UNIX
 #include <sys/types.h>
+#if !NV_OS_LINUX
 #include <sys/sysctl.h>
+#endif
 #include <unistd.h>
 #elif NV_OS_DARWIN
 #import <stdio.h>
-- 
2.39.5

