mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
290 B
C++
14 lines
290 B
C++
#ifndef LLARP_NET_NET_IF_HPP
|
|
#define LLARP_NET_NET_IF_HPP
|
|
#ifndef _WIN32
|
|
// this file is a shim include for #include <net/if.h>
|
|
#if defined(__linux__)
|
|
#include <linux/if.h>
|
|
extern "C" unsigned int
|
|
if_nametoindex(const char* __ifname) __THROW;
|
|
#else
|
|
#include <net/if.h>
|
|
#endif
|
|
#endif
|
|
#endif
|