public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Carsten Bock <carsten_maillista@cbclass.net>
To: kvm@vger.kernel.org
Subject: Re: AW: MADV_DONTFORK undeclared
Date: Thu, 4 Sep 2008 22:43:12 +0000 (UTC)	[thread overview]
Message-ID: <loom.20080904T222812-551@post.gmane.org> (raw)
In-Reply-To: E88155B5BD67CE4D87A3F1F70950B96A2FFC5E@berta.maurer-it.com

> Dietmar Maurer wrote:
> Compiling latest version 74 give me (on debian 4.0):
> 
> /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c: In function
> 'kvm_setup_guest_memory':
> /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c:821: error:
> 'MADV_DONTFORK' undeclared (first use in this function)
> /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c:821: error:
> (Each undeclared identifier is reported only once
> /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c:821: error:
> for each function it appears in.)

Hi, 

i had the same problem:

My quick fix with Debian 4.0 and Kernel(.org) 2.6.26.3 was to replace
#include <sys/mman.h> 
with
#include <asm/mman.h>
in kvm-74/qemu/qemu-kvm.c

(not sure though if this is such a good idea...)



      parent reply	other threads:[~2008-09-04 23:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 10:55 MADV_DONTFORK undeclared Dietmar Maurer
2008-08-28 11:01 ` Zhang, Xiantao
2008-08-28 11:06   ` AW: " Dietmar Maurer
2008-08-28 11:10     ` Zhang, Xiantao
2008-08-28 14:22     ` Marcelo Tosatti
2008-09-04 22:43     ` Carsten Bock [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20080904T222812-551@post.gmane.org \
    --to=carsten_maillista@cbclass.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox