mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
* refactor simplerandomizer patch * add zlib dependency * remove platforms line * revbump to refresh binaries * drop macOS Tiger support Closes: https://trac.macports.org/ticket/69221 Closes: https://trac.macports.org/ticket/69694
33 lines
768 B
Diff
33 lines
768 B
Diff
--- src/SimpleRandomizer.cc.orig
|
|
+++ src/SimpleRandomizer.cc
|
|
@@ -41,9 +41,9 @@
|
|
#include <cstring>
|
|
#include <iostream>
|
|
|
|
-#ifdef __APPLE__
|
|
+#ifdef HAVE_APPLETLS
|
|
# include <Security/SecRandom.h>
|
|
-#endif // __APPLE__
|
|
+#endif // HAVE_APPLETLS
|
|
|
|
#ifdef HAVE_LIBGNUTLS
|
|
# include <gnutls/crypto.h>
|
|
@@ -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
|