summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-17 10:45:42 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-17 10:45:42 +0300
commitb2517d99673d574ea75264b910571e9f7e6ce7c1 (patch)
tree461b957dbaa33d544a4131d95575f21b2b6a3d31
parentcc68353128ea704bae581811583fe98969e1a0f8 (diff)
downloadlibrpm-tizen-b2517d99673d574ea75264b910571e9f7e6ce7c1.tar.gz
librpm-tizen-b2517d99673d574ea75264b910571e9f7e6ce7c1.tar.bz2
librpm-tizen-b2517d99673d574ea75264b910571e9f7e6ce7c1.zip
Remove unneeded socket/inet includes
-rw-r--r--rpmio/rpmio.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 23e95023e..902a88915 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -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