qemu: unbreak building with linux-libc-headers 2.6.28

This commit is contained in:
Marcin Juszkiewicz 2009-02-24 15:06:06 +01:00
parent 71e368844f
commit c2f46bd918
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,21 @@
On Debian 'sid' systems there is no linux/dirent.h header when
linux-libc-headers 2.6.28 are installed.
---
linux-user/syscall.c | 1 +
1 file changed, 1 insertion(+)
--- qemu-0.9.1.orig/linux-user/syscall.c
+++ qemu-0.9.1/linux-user/syscall.c
@@ -75,10 +75,11 @@
#include <linux/utsname.h>
#include <linux/cdrom.h>
#include <linux/hdreg.h>
#include <linux/soundcard.h>
#include <linux/dirent.h>
+#include <dirent.h>
#include <linux/kd.h>
#include "qemu.h"
#include "qemu_spinlock.h"

View File

@ -1,6 +1,6 @@
LICENSE = "GPL"
DEPENDS = "zlib"
PR = "r7"
PR = "r8"
FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
FILESDIR = "${WORKDIR}"
@ -34,6 +34,7 @@ SRC_URI = "\
file://writev_fix.patch;patch=1 \
file://configure_symlinkpath_fix.patch;patch=1 \
file://disable-error-in-configure.patch;patch=1 \
file://fix-dirent.h-location.diff;patch=1 \
file://no-strip.patch;patch=1"
S = "${WORKDIR}/qemu-${PV}"