summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sergey Fedorov2025-11-02 11:14:38 +0800
committerGravatar Sergey Fedorov2025-11-02 11:14:38 +0800
commit8d143c95a0ceb4e0bff3a33863349ec712662117 (patch)
treec16c6ee97e20c4573476c4637634672bdbf8fae2
parent1fb6b3d1eb64f29ec6d82662a3ca0f9161878017 (diff)
downloadlibimobiledevice-8d143c95a0ceb4e0bff3a33863349ec712662117.tar.gz
libimobiledevice-8d143c95a0ceb4e0bff3a33863349ec712662117.tar.bz2
libsrp6a-sha512: fix environ for AppleHEADmaster
-rw-r--r--3rd_party/libsrp6a-sha512/t_misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/3rd_party/libsrp6a-sha512/t_misc.c b/3rd_party/libsrp6a-sha512/t_misc.c
index abd8e55..34b9509 100644
--- a/3rd_party/libsrp6a-sha512/t_misc.c
+++ b/3rd_party/libsrp6a-sha512/t_misc.c
@@ -77,7 +77,12 @@ SHA1_CTX randctxt;
77 * tricks with variable ordering and sometimes define quirky 77 * tricks with variable ordering and sometimes define quirky
78 * environment variables like $WINDOWID or $_. 78 * environment variables like $WINDOWID or $_.
79 */ 79 */
80#ifdef __APPLE__
81#include <crt_externs.h>
82#define environ (*_NSGetEnviron())
83#else
80extern char ** environ; 84extern char ** environ;
85#endif
81 86
82static void 87static void
83t_envhash(unsigned char * out) 88t_envhash(unsigned char * out)