2005-09-02 22:52:06

by Alan Menegotto

[permalink] [raw]
Subject: UML x86_86 Multicast Patch

Just a silly error.

In mcast_user.c from /usr/src/linux-2.6.13/arch/um/drivers when
multicast is enabled it cannot pass the "compile kernel" phase. The
following patch should fix the error. Please correct me if I'm wrong.

====================================================


--- /tmp/mcast_user.c 2005-09-03 19:59:15.000000000 -0300
+++ mcast_user.c 2005-09-03 19:59:32.000000000 -0300
@@ -13,7 +13,7 @@

#include <errno.h>
#include <unistd.h>
-#include <linux/inet.h>
+//#include <linux/inet.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/time.h>


--
Alan Menegotto


2005-09-03 00:19:11

by Jeff Dike

[permalink] [raw]
Subject: Re: UML x86_86 Multicast Patch

On Fri, Sep 02, 2005 at 07:52:02PM -0300, Alan Menegotto wrote:
> In mcast_user.c from /usr/src/linux-2.6.13/arch/um/drivers when
> multicast is enabled it cannot pass the "compile kernel" phase. The
> following patch should fix the error. Please correct me if I'm wrong.
>
> ====================================================
>
>
> --- /tmp/mcast_user.c 2005-09-03 19:59:15.000000000 -0300
> +++ mcast_user.c 2005-09-03 19:59:32.000000000 -0300
> @@ -13,7 +13,7 @@
>
> #include <errno.h>
> #include <unistd.h>
> -#include <linux/inet.h>
> +//#include <linux/inet.h>
> #include <sys/socket.h>
> #include <sys/un.h>
> #include <sys/time.h>

Well, it passes my compile kernel phase, otherwise it would have been
fixed already. But eliminating that include doesn't break anything
(as it can't, considering that inet.h is empty), so this is applied,
thanks.

Jeff