diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | include/idna.h | 8 | ||||
-rw-r--r-- | inet/getnameinfo.c | 4 | ||||
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 5 |
4 files changed, 22 insertions, 7 deletions
@@ -1,6 +1,18 @@ 2017-10-01 H.J. Lu <hongjiu.lu@intel.com> [BZ #18822] + * include/idna.h: New file. + * inet/getnameinfo.c: Include <idna.h> instead of + <libidn/idna.h>. + (__idna_to_unicode_lzlz): Removed. + * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of + <libidn/idna.h>. + (__idna_to_ascii_lz): Removed. + (__idna_to_unicode_lzlz): Likewise. + +2017-10-01 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #18822] * include/plural-exp.h: New file. * intl/plural-exp.c: Include <plural-exp.h> instead of "plural-exp.h". diff --git a/include/idna.h b/include/idna.h new file mode 100644 index 0000000..dcb271d --- /dev/null +++ b/include/idna.h @@ -0,0 +1,8 @@ +#ifndef _IDNA_H +#include <libidn/idna.h> + +extern __typeof (idna_to_ascii_lz) __idna_to_ascii_lz attribute_hidden; +extern __typeof (idna_to_unicode_lzlz ) __idna_to_unicode_lzlz + attribute_hidden; + +#endif diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c index b41e555..292e087 100644 --- a/inet/getnameinfo.c +++ b/inet/getnameinfo.c @@ -73,9 +73,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <scratch_buffer.h> #ifdef HAVE_LIBIDN -# include <libidn/idna.h> -extern int __idna_to_unicode_lzlz (const char *input, char **output, - int flags); +# include <idna.h> #endif #ifndef min diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index ce099bd..c58d54d 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -86,10 +86,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <inet/net-internal.h> #ifdef HAVE_LIBIDN -extern int __idna_to_ascii_lz (const char *input, char **output, int flags); -extern int __idna_to_unicode_lzlz (const char *input, char **output, - int flags); -# include <libidn/idna.h> +# include <idna.h> #endif struct gaih_service |