Compile problem on Linux/Alpha with 2.0.36p8

Emanuel Pirker (epirker@edu.uni-klu.ac.at)
Mon, 7 Sep 1998 21:29:45 +0200 (MET DST)


Hi!

I just compiled 2.0.36p8 on an Alpha AXP box:

When compiling init/main.c, compiling stops because of the fact that
sys_read has different parameters in asm/unistd.h and linux/fs.h.

Adding the word "unsigned" in asm/unistd.h builds a correct kernel, see
patch below.

I do not know if there are problems because of read(int, ...) calling
sys_read(unsigned int, ...). Maybe somebody with more Alpha knowledge
knows a better fix.

If you respond, please CC to my email - I'm not subscribed.

Bye,

Emanuel

----------------------------------------------------------------------
--- unistd.h.orig Mon Sep 7 21:09:45 1998
+++ unistd.h Mon Sep 7 21:10:17 1998
@@ -274,7 +274,7 @@
return sys_write(fd, buf, nr);
}

-extern int sys_read(int, char *, int);
+extern int sys_read(unsigned int, char *, int);
static inline int read(int fd, char * buf, int nr)
{
return sys_read(fd, buf, nr);
---------------------------------------------------------------------

---------------------------------------------------------------------------
Emanuel Pirker
epirker@edu.uni-klu.ac.at E.Pirker@FH-Kaernten.ac.at

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html