0003-fix-uClibc-compile-misc.patch 611 B

12345678910111213141516
  1. Fix wvstreams so that it builds with uClibc: const cast problem.
  2. Signed-off-by: Simon Dawson <spdawson@gmail.com>
  3. diff -Nurp a/crypto/wvx509.cc b/crypto/wvx509.cc
  4. --- a/crypto/wvx509.cc 2008-10-23 21:23:49.000000000 +0100
  5. +++ b/crypto/wvx509.cc 2012-06-15 18:45:06.605899292 +0100
  6. @@ -1157,7 +1157,7 @@ WvString WvX509::get_extension(int nid)
  7. if (ext)
  8. {
  9. - X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
  10. + X509V3_EXT_METHOD *method = const_cast<X509V3_EXT_METHOD *>(X509V3_EXT_get(ext));
  11. if (!method)
  12. {
  13. WvDynBuf buf;