- there's no fallback for missing netdb.h so there's little point
conditionalizing it
- avoid yet more system.h pollution
#include "system.h"
#include <pwd.h>
#include <grp.h>
+#include <netdb.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include "debug.h"
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)
/* 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"
#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
#include <assert.h>
#include <netinet/in.h>
+#include <netdb.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmlog.h>
#endif
extern const char *__progname;
-#if HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
/* Take care of NLS matters. */
#if HAVE_LOCALE_H
*/
#include <stdarg.h>
+#include <netdb.h>
#include <rpm/rpmutil.h>
#include "debug.h"