Remove unneeded socket/inet includes
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 17 Sep 2007 07:45:42 +0000 (10:45 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 17 Sep 2007 07:45:42 +0000 (10:45 +0300)
rpmio/rpmio.c

index 23e9502..902a889 100644 (file)
@@ -9,18 +9,6 @@
 # include <machine/types.h>
 #endif
 
-#if HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-
-#include <netinet/in.h>
-#include <arpa/inet.h>         /* XXX for inet_aton and HP-UX */
-
-#if HAVE_NETINET_IN_SYSTM_H
-# include <sys/types.h>
-# include <netinet/in_systm.h>
-#endif
-
 #if HAVE_LIBIO_H && defined(_G_IO_IO_FILE_VERSION)
 #define        _USE_LIBIO      1
 #endif
@@ -37,23 +25,6 @@ extern int h_errno;
 #define        IPPORT_HTTP     80
 #endif
 
-#if !defined(HAVE_INET_ATON)
-static int inet_aton(const char *cp, struct in_addr *inp)
-{
-    long addr;
-
-    addr = inet_addr(cp);
-    if (addr == ((long) -1)) return 0;
-
-    memcpy(inp, &addr, sizeof(addr));
-    return 1;
-}
-#endif
-
-#if defined(USE_ALT_DNS) && USE_ALT_DNS
-#include "dns.h"
-#endif
-
 #include <rpmio_internal.h>
 #undef fdFileno
 #undef fdOpen