From 2650fa9ee9806a25904566dea091b1225d74f063 Mon Sep 17 00:00:00 2001 From: Apple Date: Wed, 29 Mar 2017 20:13:52 +0000 Subject: [PATCH] Libc-1158.50.2.tar.gz --- darwin/compatibility_hacks.c | 2 ++ include/libkern/OSThermalNotification.h | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/darwin/compatibility_hacks.c b/darwin/compatibility_hacks.c index 04a2dd8..9de6e3c 100644 --- a/darwin/compatibility_hacks.c +++ b/darwin/compatibility_hacks.c @@ -49,4 +49,6 @@ ADDED_IN_10_12(dirname_r); ADDED_IN_10_12(mkostemp); ADDED_IN_10_12(mkostemps); +ADDED_IN_10_12(timingsafe_bcmp); + #endif /* TARGET_OS_IPHONE */ diff --git a/include/libkern/OSThermalNotification.h b/include/libkern/OSThermalNotification.h index 02bf1f7..9fe603e 100644 --- a/include/libkern/OSThermalNotification.h +++ b/include/libkern/OSThermalNotification.h @@ -39,6 +39,16 @@ __BEGIN_DECLS /* Define pressure levels usable by OSThermalPressureLevel */ +#if TARGET_OS_IPHONE +typedef enum { + kOSThermalPressureLevelNominal = 0, + kOSThermalPressureLevelLight = 10, + kOSThermalPressureLevelModerate = 20, + kOSThermalPressureLevelHeavy = 30, + kOSThermalPressureLevelTrapping = 40, + kOSThermalPressureLevelSleeping = 50 +} OSThermalPressureLevel; +#else typedef enum { kOSThermalPressureLevelNominal = 0, kOSThermalPressureLevelModerate, @@ -46,6 +56,7 @@ typedef enum { kOSThermalPressureLevelTrapping, kOSThermalPressureLevelSleeping } OSThermalPressureLevel; +#endif /* ** External notify(3) string for thermal pressure level notification -- 2.47.2