From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27771 invoked by alias); 23 Sep 2005 13:47:37 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 27625 invoked by uid 48); 23 Sep 2005 13:47:01 -0000 Date: Fri, 23 Sep 2005 13:47:00 -0000 Message-ID: <20050923134701.27624.qmail@sourceware.org> From: "simon at josefsson dot org" To: glibc-bugs@sources.redhat.com In-Reply-To: <20041110184141.538.simon@josefsson.org> References: <20041110184141.538.simon@josefsson.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/538] Improvement to getaddrinfo gai_strerror.c to make it usable in gnulib X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00202.txt.bz2 List-Id: ------- Additional Comments From simon at josefsson dot org 2005-09-23 13:46 ------- (In reply to comment #3) > (In reply to comment #2) > > It is always wrong to use __USE_GNU in non-header files. The file must simply > > be defined so that the definitions of the values are visible in the header. > > How about this patch? It sync with current gnulib CVS, and hide the non-POSIX > EAI_* values inside a #if EAI_IDN_ENCODE test. Updated changelog entry: 2005-09-23 Simon Josefsson * sysdeps/posix/gai_strerror.c [_LIBC]: Make #include conditional on _LIBC. [!_LIBC]: Include getaddrinfo.h, gettext.h and define _ and N_, for when the file is used in gnulib. [__EAI_IDN_ENCODE]: Only use EAI_INPROGRESS, EAI_CANCELED, EAI_NOTCANCELED, EAI_ALLDONE, EAI_INTR, and EAI_IDN_ENCODE when EAI_IDN_ENCODE is defined, to make the file work on non-GNU systems. [_LIBC]: Make libc_hidden_def conditional on _LIBC. [HAVE_CONFIG_H]: Include config.h, for gnulib. -- http://sourceware.org/bugzilla/show_bug.cgi?id=538 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.