mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
and even better fix again, since this one builds on both linux and
android.
This commit is contained in:
parent
c70646039d
commit
14f9d8001b
22
lsif.c
22
lsif.c
@ -28,6 +28,28 @@
|
|||||||
|
|
||||||
#include "serval.h"
|
#include "serval.h"
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#if __MACH__ || __NetBSD__ || __OpenBSD__ || __FreeBSD__
|
||||||
|
#include <sys/sysctl.h>
|
||||||
|
#endif
|
||||||
|
/* Include sockio.h if needed */
|
||||||
|
#ifndef SIOCGIFCONF
|
||||||
|
#include <sys/sockio.h>
|
||||||
|
#endif
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/if_ether.h>
|
||||||
|
#if __MACH__
|
||||||
|
#include <net/if_dl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* On platforms that have variable length
|
/* On platforms that have variable length
|
||||||
ifreq use the old fixed length interface instead */
|
ifreq use the old fixed length interface instead */
|
||||||
#ifdef OSIOCGIFCONF
|
#ifdef OSIOCGIFCONF
|
||||||
|
Loading…
Reference in New Issue
Block a user