mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Add support for GNU/kFreeBSD
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
3098b9fde9
commit
a167ba5085
11 changed files with 39 additions and 42 deletions
|
@ -30,14 +30,11 @@
|
|||
#include <net/if_tap.h>
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
|
||||
#include <libutil.h>
|
||||
#else
|
||||
#include <util.h>
|
||||
#endif
|
||||
#if defined (__GLIBC__) && defined (__FreeBSD_kernel__)
|
||||
#include <freebsd/stdlib.h>
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#include <util.h>
|
||||
|
@ -49,7 +46,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required
|
|||
char *dev;
|
||||
struct stat s;
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
/* if no ifname is given, always start the search from tap0. */
|
||||
int i;
|
||||
char dname[100];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue