From nobody@FreeBSD.org  Mon Sep  5 11:36:00 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6BD2216A423
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Sep 2005 11:36:00 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3CBA143D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Sep 2005 11:36:00 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j85Ba0kH040503
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 5 Sep 2005 11:36:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j85BZxuC040502;
	Mon, 5 Sep 2005 11:35:59 GMT
	(envelope-from nobody)
Message-Id: <200509051135.j85BZxuC040502@www.freebsd.org>
Date: Mon, 5 Sep 2005 11:35:59 GMT
From: Federico Galvez-Durand <federicogalvezdurand@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/include/resolv.h does not compile in simple test program.
X-Send-Pr-Version: www-2.3

>Number:         85741
>Category:       kern
>Synopsis:       [patch] /usr/include/resolv.h does not compile in simple test program.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 05 11:40:16 GMT 2005
>Closed-Date:    Fri Sep 09 19:38:48 GMT 2005
>Last-Modified:  Fri Sep 09 19:38:48 GMT 2005
>Originator:     Federico Galvez-Durand
>Release:        i386
>Organization:
>Environment:
5.4-STABLE FreeBSD 5.4-STABLE #0: Fri Aug 26 09:00:09 GMT-2 2005
>Description:
Simple test program does not compile. 
It needs #include <netinet/in.h> for definition of address types.


>How-To-Repeat:
compile:
#include <resolv.h>
main ()
{
}
      
>Fix:
*** resolv.h.orig       Fri Sep  2 18:42:55 2005
--- resolv.h    Fri Sep  2 18:44:28 2005
***************
*** 61,66 ****
--- 61,67 ----
  #include <sys/types.h>
  #include <sys/cdefs.h>
  #include <sys/socket.h>
+ #include <netinet/in.h>
  #include <stdio.h>

  /*
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 5 13:45:29 GMT 2005 
Responsible-Changed-Why:  
This is not i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85741 
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Fri Sep 9 19:37:56 GMT 2005 
State-Changed-Why:  
Your testcase is wrong.  Look at the man page for resolver(3) 
for the correct includes to use before including <resolv.h. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85741 
>Unformatted:
