diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-02-13 04:56:27 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-02-13 04:56:27 +0000 |
commit | 1a4f20541a9f4f41f444d826d743899ea2dee2db (patch) | |
tree | e572718952564d8a0b47913f464240a432b52ae6 /hw/xfree86/os-support/linux/int10 | |
parent | 2dc7b5e0d96a187bfbb355caa788f0fdcd88eaad (diff) |
Fix linux build without libc wrappers (From Fredrik Höglund)
Diffstat (limited to 'hw/xfree86/os-support/linux/int10')
-rw-r--r-- | hw/xfree86/os-support/linux/int10/linux.c | 8 | ||||
-rw-r--r-- | hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c index 69df3118e..a91137810 100644 --- a/hw/xfree86/os-support/linux/int10/linux.c +++ b/hw/xfree86/os-support/linux/int10/linux.c @@ -27,6 +27,14 @@ #define ALLOC_ENTRIES(x) ((V_RAM / x) - 1) #define SHMERRORPTR (pointer)(-1) +#include <fcntl.h> +#include <errno.h> +#include <sys/mman.h> +#include <sys/ipc.h> +#include <sys/shm.h> +#include <unistd.h> +#include <string.h> + static int counter = 0; static unsigned long int10Generation = 0; diff --git a/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c b/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c index 05d40a37b..48500dbbf 100644 --- a/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c +++ b/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c @@ -4,6 +4,9 @@ #include <xorg-config.h> #endif +#include <errno.h> +#include <string.h> + #include "xf86.h" #include "xf86_OSproc.h" #include "xf86Pci.h" |