Linux::AIO 1.4 and Fedora Core 3
Pedro Melo Cunha
melo at isp.novis.pt
Sat Jan 29 09:22:37 PST 2005
Hi,
On 29/jan/2005, at 17:17, Kate Turner wrote:
> On Sat, 29 Jan 2005 17:07:25 +0000, Pedro Melo Cunha
> <melo at isp.novis.pt> wrote:
>> AIO.xs: In function `aio_proc':
>> AIO.xs:247: error: syntax error before "int"
>> AIO.xs:290: error: too many arguments to function `pread64'
>> AIO.xs:291: error: too many arguments to function `pwrite64'
>
> This problem is fixed by including <linux/unistd.h> in AIO.xs, so:
>
> ...
> #include <signal.h>
> #include <sched.h>
> #include <linux/unistd.h>
>
> I don't know if that's the correct fix, but it at least makes it
> compile.
Exactly :)
I just found out by myself, and I was replying to myself :)
Anyway, this patch works:
--- AIO.xs.orig 2005-01-29 17:20:29.966887056 +0000
+++ AIO.xs 2005-01-29 17:21:14.830066816 +0000
@@ -217,7 +217,7 @@
static sigset_t fullsigset;
#undef errno
-#include <asm/unistd.h>
+#include <linux/unistd.h>
#include <sys/prctl.h>
#define COPY_STATDATA \
I Cc'd the Linux::AIO author.
Best regards, and thanks!
--
Pedro Melo Cunha - <melo at isp.novis.pt>
Novis Telecom, S.A. - Dir. Rede - ISP <http://www.novis.pt/>
Edifício Novis - Estrada da Outurela, 118 - 2795-606 Carnaxide
tel: +351 21 0104340 - fax: +351 21 0104301
More information about the perlbal
mailing list