mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
28
package/softether/0007-iconv.patch
Normal file
28
package/softether/0007-iconv.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
Fix linking with libiconv
|
||||
|
||||
Inspired by https://github.com/el1n/OpenWRT-package-softether/blob/4cb1cd9073a76edf34c512e587069626e02e2404/patches/120-fix-iconv-headers-common.patch
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
Index: b/src/Mayaqua/Mayaqua.h
|
||||
===================================================================
|
||||
--- a/src/Mayaqua/Mayaqua.h
|
||||
+++ b/src/Mayaqua/Mayaqua.h
|
||||
@@ -282,17 +282,7 @@
|
||||
#include <ifaddrs.h>
|
||||
#endif // MAYAQUA_SUPPORTS_GETIFADDRS
|
||||
|
||||
-#ifdef UNIX_LINUX
|
||||
-typedef void *iconv_t;
|
||||
-iconv_t iconv_open (__const char *__tocode, __const char *__fromcode);
|
||||
-size_t iconv (iconv_t __cd, char **__restrict __inbuf,
|
||||
- size_t *__restrict __inbytesleft,
|
||||
- char **__restrict __outbuf,
|
||||
- size_t *__restrict __outbytesleft);
|
||||
-int iconv_close (iconv_t __cd);
|
||||
-#else // UNIX_LINUX
|
||||
#include <iconv.h>
|
||||
-#endif // UNIX_LINUX
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user