comparison lib/gai_strerror.c @ 6221:ee77add4f839

* gai_strerror.c: Include config.h when available. Include getaddrinfo.h before other headers to test interface. Reported by Larry Jones <lawrence.jones@ugs.com>.
author Derek R. Price <derek@ximbiot.com>
date Mon, 12 Sep 2005 14:25:04 +0000
parents a48fb0e98c8c
children 29248383a0c7
comparison
equal deleted inserted replaced
6220:43c8e8a95c2d 6221:ee77add4f839
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation, 16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
18 18
19 #ifdef HAVE_CONFIG_H
20 # include <config.h>
21 #endif
22
23 #ifndef _LIBC
24 # include "getaddrinfo.h"
25 #endif
26
19 #include <stdio.h> 27 #include <stdio.h>
20 #include <netdb.h> 28 #include <netdb.h>
21 29
22 #ifdef _LIBC 30 #ifdef _LIBC
23 # include <libintl.h> 31 # include <libintl.h>
24 #else 32 #else
25 # include "getaddrinfo.h"
26 # include "gettext.h" 33 # include "gettext.h"
27 # define _(String) gettext (String) 34 # define _(String) gettext (String)
28 # define N_(String) String 35 # define N_(String) String
29 #endif 36 #endif
30 37