be backwards compatible to legacy BSD constant naming
This commit is contained in:
parent
3996ade63e
commit
08ea2e27a0
@ -7,6 +7,11 @@
|
|||||||
#include "haven2i.h"
|
#include "haven2i.h"
|
||||||
|
|
||||||
#ifdef HAVE_N2I
|
#ifdef HAVE_N2I
|
||||||
|
/* legacy BSD name */
|
||||||
|
#ifndef IF_NAMESIZE
|
||||||
|
#define IF_NAMESIZE IFNAMSIZ
|
||||||
|
#endif
|
||||||
|
|
||||||
static char ifname[IF_NAMESIZE];
|
static char ifname[IF_NAMESIZE];
|
||||||
|
|
||||||
const char* socket_getifname(uint32 _interface) {
|
const char* socket_getifname(uint32 _interface) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user