Loading...
--- Libc/Libc-825.26/sys/OSThermalNotification.c
+++ Libc/Libc-1669.40.2/sys/OSThermalNotification.c
@@ -21,13 +21,25 @@
* @APPLE_LICENSE_HEADER_END@
*/
+#include <libkern/OSThermalNotification.h>
+
+#include <TargetConditionals.h>
+
+#define OSThermalPressureLevelName "com.apple.system.thermalpressurelevel"
+const char * const kOSThermalNotificationPressureLevelName = OSThermalPressureLevelName;
+
+#if TARGET_OS_IPHONE
+
#include <dispatch/dispatch.h>
-#include <libkern/OSThermalNotification.h>
#include <notify.h>
+#define OSThermalAlert "com.apple.system.thermalalert"
+#define OSThermalDecision "com.apple.system.thermaldecision"
#define OSThermalStatusName "com.apple.system.thermalstatus"
-const char * const kOSThermalNotificationName = OSThermalStatusName;
+const char * const kOSThermalNotificationAlert = OSThermalAlert;
+const char * const kOSThermalNotificationDecision = OSThermalDecision;
+const char * const kOSThermalNotificationName = OSThermalStatusName;
static const char * const kOSThermalMitigationNames[kOSThermalMitigationCount] = {
OSThermalStatusName,
@@ -108,3 +120,5 @@
// Not ready returns -1, which should not be equal or greater than any other thermal state.
return OSThermalNotificationLevelAny;
}
+
+#endif // TARGET_OS_IPHONE