changeset 10685:6473cab5bf8b

canon-host: Include netdb.h instead of getaddrinfo.h.
author Jim Meyering <meyering@redhat.com>
date Mon, 20 Oct 2008 14:00:31 +0200
parents d5d208d973af
children fed096a2c3cd
files ChangeLog lib/canon-host.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,10 @@
 
 2008-10-20  Simon Josefsson  <simon@josefsson.org>
 
+	* lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
+
+2008-10-20  Simon Josefsson  <simon@josefsson.org>
+
 	* lib/getaddrinfo.h: Remove file.
 	* modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
 	* m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
--- a/lib/canon-host.c
+++ b/lib/canon-host.c
@@ -1,6 +1,6 @@
 /* Host name canonicalization
 
-   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
    Written by Derek Price <derek@ximbiot.com>.
 
@@ -22,8 +22,7 @@
 #include "canon-host.h"
 
 #include <string.h>
-
-#include "getaddrinfo.h"
+#include <netdb.h>
 
 /* Store the last error for the single-threaded version of this function.  */
 static int last_cherror;