Revision 71e72a19 net.c
b/net.c | ||
---|---|---|
29 | 29 |
#include <sys/time.h> |
30 | 30 |
#include <zlib.h> |
31 | 31 |
|
32 |
/* Needed early for HOST_BSD etc. */
|
|
32 |
/* Needed early for CONFIG_BSD etc. */
|
|
33 | 33 |
#include "config-host.h" |
34 | 34 |
|
35 | 35 |
#ifndef _WIN32 |
... | ... | |
52 | 52 |
#include <dirent.h> |
53 | 53 |
#include <netdb.h> |
54 | 54 |
#include <sys/select.h> |
55 |
#ifdef HOST_BSD
|
|
55 |
#ifdef CONFIG_BSD
|
|
56 | 56 |
#include <sys/stat.h> |
57 | 57 |
#if defined(__FreeBSD__) || defined(__DragonFly__) |
58 | 58 |
#include <libutil.h> |
... | ... | |
1435 | 1435 |
return s; |
1436 | 1436 |
} |
1437 | 1437 |
|
1438 |
#if defined (HOST_BSD) || defined (__FreeBSD_kernel__)
|
|
1438 |
#if defined (CONFIG_BSD) || defined (__FreeBSD_kernel__)
|
|
1439 | 1439 |
static int tap_open(char *ifname, int ifname_size) |
1440 | 1440 |
{ |
1441 | 1441 |
int fd; |
Also available in: Unified diff