--- src/SimpleRandomizer.cc.orig +++ src/SimpleRandomizer.cc @@ -41,9 +41,9 @@ #include #include -#ifdef __APPLE__ +#ifdef HAVE_APPLETLS # include -#endif // __APPLE__ +#endif // HAVE_APPLETLS #ifdef HAVE_LIBGNUTLS # include @@ -106,7 +106,7 @@ assert(r); abort(); } -#elif defined(__APPLE__) +#elif defined(HAVE_APPLETLS) auto rv = SecRandomCopyBytes(kSecRandomDefault, len, buf); assert(errSecSuccess == rv); #elif defined(HAVE_LIBGNUTLS) @@ -148,7 +148,7 @@ assert(0); abort(); } -#endif // !__MINGW32__ && !__APPLE__ && !HAVE_OPENSSL && !HAVE_LIBGNUTLS +#endif // !__MINGW32__ && !HAVE_APPLETLS && !HAVE_OPENSSL && !HAVE_LIBGNUTLS } } // namespace aria2