diff options
| author | 2025-11-02 11:14:38 +0800 | |
|---|---|---|
| committer | 2025-11-02 11:14:38 +0800 | |
| commit | 8d143c95a0ceb4e0bff3a33863349ec712662117 (patch) | |
| tree | c16c6ee97e20c4573476c4637634672bdbf8fae2 /3rd_party | |
| parent | 1fb6b3d1eb64f29ec6d82662a3ca0f9161878017 (diff) | |
| download | libimobiledevice-8d143c95a0ceb4e0bff3a33863349ec712662117.tar.gz libimobiledevice-8d143c95a0ceb4e0bff3a33863349ec712662117.tar.bz2 | |
Diffstat (limited to '3rd_party')
| -rw-r--r-- | 3rd_party/libsrp6a-sha512/t_misc.c | 5 |
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; * tricks with variable ordering and sometimes define quirky * environment variables like $WINDOWID or $_. */ +#ifdef __APPLE__ +#include <crt_externs.h> +#define environ (*_NSGetEnviron()) +#else extern char ** environ; +#endif static void t_envhash(unsigned char * out) |
