소스 검색

LibCore: Don't include sys/sysctl.h on Solaris

Niklas Poslovski 1 년 전
부모
커밋
ebc5b33b77
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibCore/Process.cpp
  2. 1 1
      Userland/Libraries/LibCore/System.cpp

+ 1 - 1
Userland/Libraries/LibCore/Process.cpp

@@ -20,7 +20,7 @@
 #if defined(AK_OS_SERENITY)
 #    include <serenity.h>
 #    include <syscall.h>
-#elif defined(AK_OS_BSD_GENERIC)
+#elif defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_SOLARIS)
 #    include <sys/sysctl.h>
 #endif
 

+ 1 - 1
Userland/Libraries/LibCore/System.cpp

@@ -50,7 +50,7 @@ static int memfd_create(char const* name, unsigned int flags)
 extern char** environ;
 #endif
 
-#if defined(AK_OS_BSD_GENERIC)
+#if defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_SOLARIS)
 #    include <sys/sysctl.h>
 #endif