diff options
-rw-r--r-- | build/names.c | 1 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | lib/header.c | 2 | ||||
-rw-r--r-- | lib/rpmrc.c | 2 | ||||
-rw-r--r-- | rpmio/url.c | 1 | ||||
-rw-r--r-- | system.h | 4 | ||||
-rw-r--r-- | tools/javadeps.c | 1 |
7 files changed, 6 insertions, 7 deletions
diff --git a/build/names.c b/build/names.c index 692bbe921..aea9acf67 100644 --- a/build/names.c +++ b/build/names.c @@ -7,6 +7,7 @@ #include "system.h" #include <pwd.h> #include <grp.h> +#include <netdb.h> #include <rpm/rpmbuild.h> #include <rpm/rpmlog.h> #include "debug.h" diff --git a/configure.ac b/configure.ac index 5d53be552..264d8a389 100644 --- a/configure.ac +++ b/configure.ac @@ -356,7 +356,7 @@ AC_HEADER_TIME AC_CHECK_HEADERS(locale.h) AC_CHECK_HEADERS(limits.h) -AC_CHECK_HEADERS(fcntl.h getopt.h memory.h netdb.h) +AC_CHECK_HEADERS(fcntl.h getopt.h memory.h) AC_CHECK_HEADERS(sys/ipc.h) AC_CHECK_HEADERS(sys/mman.h sys/utsname.h sys/wait.h) diff --git a/lib/header.c b/lib/header.c index 5f9baebdc..2cd5dd321 100644 --- a/lib/header.c +++ b/lib/header.c @@ -9,7 +9,7 @@ /* network byte order and is converted on the fly to host order. */ #include "system.h" - +#include <netdb.h> #include <rpm/rpmtypes.h> #include <rpm/rpmstring.h> #include "lib/header_internal.h" diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 08df74eee..cfc9332d7 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -8,7 +8,7 @@ #if HAVE_SYS_UTSNAME_H #include <sys/utsname.h> #endif - +#include <netdb.h> #include <ctype.h> /* XXX for /etc/rpm/platform contents */ #if HAVE_SYS_SYSTEMCFG_H diff --git a/rpmio/url.c b/rpmio/url.c index f20be1a83..cd73e9a36 100644 --- a/rpmio/url.c +++ b/rpmio/url.c @@ -6,6 +6,7 @@ #include <assert.h> #include <netinet/in.h> +#include <netdb.h> #include <rpm/rpmmacro.h> #include <rpm/rpmlog.h> @@ -205,10 +205,6 @@ typedef void * cap_t; #endif extern const char *__progname; -#if HAVE_NETDB_H -#include <netdb.h> -#endif - /* Take care of NLS matters. */ #if HAVE_LOCALE_H diff --git a/tools/javadeps.c b/tools/javadeps.c index 5a20901a3..43e962e35 100644 --- a/tools/javadeps.c +++ b/tools/javadeps.c @@ -65,6 +65,7 @@ marc@redhat.com and ewt@redhat.com. */ #include <stdarg.h> +#include <netdb.h> #include <rpm/rpmutil.h> #include "debug.h" |