From c70646039d1a1484350aac3ee9d3b07ab40479c4 Mon Sep 17 00:00:00 2001 From: gardners Date: Fri, 11 May 2012 08:17:37 +0930 Subject: [PATCH] better fix for redefined symbols --- lsif.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/lsif.c b/lsif.c index a8ed72c8..fa91b31b 100644 --- a/lsif.c +++ b/lsif.c @@ -25,28 +25,8 @@ * http://teotwawki.steubentech.com/ * */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if __MACH__ || __NetBSD__ || __OpenBSD__ || __FreeBSD__ -#include -#endif -/* Include sockio.h if needed */ -#ifndef SIOCGIFCONF -#include -#endif -#include -#include -#include -#if __MACH__ -#include -#endif + +#include "serval.h" /* On platforms that have variable length ifreq use the old fixed length interface instead */ @@ -59,12 +39,6 @@ #define SIOCGIFBRDADDR OSIOCGIFBRDADDR #endif -#ifdef ANDROID -#include "serval.h" -#else -#warning for some reason including serval.h here causes ifmap, ifreq and ifconf to be redefined on some linux distros -#endif - /* for when all other options fail, as can happen on Android, if the permissions for the socket-based method are broken. Down side is that it while it gets the interface name and