diff --git a/src/elements/osal.h b/src/elements/osal.h index 453c3ca9..56ce5e58 100644 --- a/src/elements/osal.h +++ b/src/elements/osal.h @@ -90,26 +90,9 @@ #else #define SYSCTL_LEGACY_NONCONST_MIB #endif -#if defined(__APPLE__) && !__has_include() -#warning "The header is missing in iOS SDK. " \ - "Copy it manually from the OSX SDK or iPhoneSimulator SDK. " \ - "Don't forget to thank Apple for taking care of you!" -/*** FOR INSTANCE: - $ xcode-select --install - $ sudo installer -pkg - /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg - -target $ cd - $ sudo cp - ./Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/vmmeter.h - ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/ - *** OR: - $ cd - $ sudo cp - ./Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sys/vmmeter.h - ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/ - ***/ -#endif /* iOS */ +#ifndef __MACH__ #include +#endif #else #include #if !(defined(__sun) || defined(__SVR4) || defined(__svr4__) || \