mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +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 <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
|
||||
ifreq use the old fixed length interface instead */
|
||||
#ifdef OSIOCGIFCONF
|
||||
|
Loading…
Reference in New Issue
Block a user