Commit 5c40d2bd4836636b762906bf1516c30b0ed5d74c
1 parent
0cfec834
Kfreebsd config, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3010 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
9 additions
and
1 deletions
configure
vl.c
... | ... | @@ -47,6 +47,8 @@ |
47 | 47 | #ifndef __APPLE__ |
48 | 48 | #include <libutil.h> |
49 | 49 | #endif |
50 | +#elif defined (__GLIBC__) && defined (__FreeBSD_kernel__) | |
51 | +#include <freebsd/stdlib.h> | |
50 | 52 | #else |
51 | 53 | #ifndef __sun__ |
52 | 54 | #include <linux/if.h> |
... | ... | @@ -3451,7 +3453,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd) |
3451 | 3453 | return s; |
3452 | 3454 | } |
3453 | 3455 | |
3454 | -#ifdef _BSD | |
3456 | +#if defined (_BSD) || defined (__FreeBSD_kernel__) | |
3455 | 3457 | static int tap_open(char *ifname, int ifname_size) |
3456 | 3458 | { |
3457 | 3459 | int fd; | ... | ... |