This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: IDN support in getaddrinfo().


Ulrich Drepper <drepper@redhat.com> writes:

> Andreas Jaeger wrote:
>
>> What about the following?
>
> Incomplete and incorrect.  The file name is libcidn.  And the file name
> in idn-stub.c must come from gnu/lib-names.h.

What about the following patch?  Compilation was successfull.

Ok to commit?

Andreas

2004-03-08  Andreas Jaeger  <aj@suse.de>

	* idn-stub.c (__idna_to_ascii_lz): Use LIBCIDN_SO.
	Include <gnu/lib-names.h> for LIBCIDN_SO.
	* shlib-versions: New file.

============================================================
Index: libidn/idn-stub.c
--- libidn/idn-stub.c	8 Mar 2004 04:16:12 -0000	1.2
+++ libidn/idn-stub.c	8 Mar 2004 07:48:15 -0000
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <dlfcn.h>
 #include <bits/libc-lock.h>
+#include <gnu/lib-names.h>
 
 /* Get specification for idna_to_ascii_lz. */
 #include "idna.h"
@@ -61,7 +62,7 @@ __idna_to_ascii_lz (const char *input, c
       /* Retest in case some other thread arrived here at the same time.  */
       if (h == NULL)
 	{
-	  h = __libc_dlopen ("libcidn.so");
+	  h = __libc_dlopen (LIBCIDN_SO);
 
 	  if (h == NULL)
 	    h = (void *) 1l;
============================================================
Index: libidn/shlib-versions
--- libidn/shlib-versions	created
+++ libidn/shlib-versions	2004-03-08 08:44:54.769610307 +0100	1.1
@@ -0,0 +1 @@
+.*-.*-.*		libcidn=1

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]