diff options
author | Alexander Graf <agraf@suse.de> | 2009-10-30 22:27:00 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 16:38:15 -0500 |
commit | 700d4c28ba94bfa71a2ee9c7dad52eb3a995302c (patch) | |
tree | 58890ab7f368bb8b673e08f97f0ceebd32ce404f /net/tap.c | |
parent | ea2ddda395eaae0c1758a9b7cc64c476b0290557 (diff) | |
download | qemu-700d4c28ba94bfa71a2ee9c7dad52eb3a995302c.tar.gz qemu-700d4c28ba94bfa71a2ee9c7dad52eb3a995302c.tar.bz2 qemu-700d4c28ba94bfa71a2ee9c7dad52eb3a995302c.zip |
Unbreak tap compilation on OS X
Currently compiling the tap sources breaks on Mac OS X. This is because of:
1) tap-linux.h requiring Linux includes
2) typos
3) missing #includes
This patch adds what's necessary to compile tap happily on Mac OS X.
I haven't tested if using tap actually works, but I don't think that's a
major issue as that code was probably seriously untested before already.
I didn't split the patch, because it's only a few lines of code and
splitting is probably not worth the effort here.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r-- | net/tap.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/wait.h> +#include <sys/socket.h> #include <net/if.h> #include "net.h" |