0007-iconv.patch 926 B

12345678910111213141516171819202122232425262728
  1. Fix linking with libiconv
  2. Inspired by https://github.com/el1n/OpenWRT-package-softether/blob/4cb1cd9073a76edf34c512e587069626e02e2404/patches/120-fix-iconv-headers-common.patch
  3. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  4. Index: b/src/Mayaqua/Mayaqua.h
  5. ===================================================================
  6. --- a/src/Mayaqua/Mayaqua.h
  7. +++ b/src/Mayaqua/Mayaqua.h
  8. @@ -282,17 +282,7 @@
  9. #include <ifaddrs.h>
  10. #endif // MAYAQUA_SUPPORTS_GETIFADDRS
  11. -#ifdef UNIX_LINUX
  12. -typedef void *iconv_t;
  13. -iconv_t iconv_open (__const char *__tocode, __const char *__fromcode);
  14. -size_t iconv (iconv_t __cd, char **__restrict __inbuf,
  15. - size_t *__restrict __inbytesleft,
  16. - char **__restrict __outbuf,
  17. - size_t *__restrict __outbytesleft);
  18. -int iconv_close (iconv_t __cd);
  19. -#else // UNIX_LINUX
  20. #include <iconv.h>
  21. -#endif // UNIX_LINUX