Fix for errno 2 - expected 14 (EFAULT) problems

Alexander Leidinger Alexander at Leidinger.net
Sun Sep 17 08:45:26 PDT 2006


Quoting Boris Samorodov <bsam at ipt.ru> (Sun, 17 Sep 2006 17:52:08 +0400):

> And:
> -----
> tinderbox# grep LINUX /sys/amd64/conf/GENERIC
> options         COMPAT_LINUX32          # Compatible with i386 linux binaries
> -----
> 
> Help...!

Ok, add 
#include "opt_compat.h"
like here:
---snip---
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include "opt_compat.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/module.h>
---snip---

to linux_aio.c (you need the patch from the wiki, the patch I did send
to you and the above fix I'm going to commit to p4 now).

Bye,
Alexander.

-- 
hardware stress fractures
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list