Ethereal-users: Re: [ethereal-users] compilation prob.
On Fri, Sep 15, 2000 at 04:33:14PM -0400, Paul Mitchell wrote:
> I'm having trouble with util.c:
Apply the attached patch to it.
If it fails to compile because it cannot find <net/if.h>, then you need
to install whatever package in your Solaris distribution includes that
header file, run "make distclean", run "configure", and rebuild. The
code to build the list of interfaces in the combo box in the capture
preferences dialog requires, on UNIX, that IFF_UP, IFF_LOOPBACK, "struct
ifreq", and "struct ifconf" be defined, and, on all UNIXes I know of,
they are defined in <net/if.h> (note that libpcap includes <net/if.h>
unconditionally in "inet.c", as "pcap_lookupdev()" also searches the
system's list of interfaces, using a similar mechanism).
Index: util.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/util.c,v
retrieving revision 1.44
diff -c -r1.44 util.c
*** util.c 2000/09/10 06:44:38 1.44
--- util.c 2000/09/17 02:56:11
***************
*** 75,81 ****
#include <sys/ioctl.h>
#endif
! #ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
--- 75,81 ----
#include <sys/ioctl.h>
#endif
! #ifndef WIN32
#include <net/if.h>
#endif