Bug 4400 - names.c, ftp.c, and url.c need netdb.h
Summary: names.c, ftp.c, and url.c need netdb.h
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-08-06 18:01 UTC by tpavlic
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-08-06 19:59:20 UTC
Embargoed:


Attachments (Terms of Use)

Description tpavlic 1999-08-06 18:01:11 UTC
In the source of RPM-3.0.2-6.0, these three files:

build/names.c
lib/ftp.c
url.c

need to have this line added to them at the very top of
each file:

#include <netdb.h>

netdb.h is needed for the hostent structs and the
gethostbyname function. (as well as a few other things)

Comment 1 Jeff Johnson 1999-08-06 19:59:59 UTC
Those *.c files all include system.h which includes netdb.h.


Note You need to log in before you can comment on or make changes to this bug.