On 2011-03-29 19:15, Ivan Lonel wrote:
> Hi everybody,
> I'm trying to install RTnet, with rtai 3.8.1, on a Debian with kernel
> 2.6.32.11. I downloaded RTnet from git last friday, 25th.
> The problem is: when I run 'make' to compile RTnet, it shows the following
> error message:
> 
> /usr/src/rtnet/stack/ipv4/tcp/timerwheel.c:166: error: implicit declaration
> of function `msleep`
> 
> Before compiling, I'm configuring RTnet with TCP enabled, using the
> following command line:
> 
> # ./configure --with-rtext=/usr/realtime
> --with-linux=/usr/src/linux-2.6.32.11
> --with-rtext-config=/usr/realtime/bin/rtai-config
> --with-module-dir=/lib/modules/2.6.32.11-rtai --enable-examples
> --enable-rtcap --enable-tcp=y --enable-8139=y
> 
> What could be the reason for that message?

Does this patch resolve the breakage?

diff --git a/stack/ipv4/tcp/tcp.c b/stack/ipv4/tcp/tcp.c
index 5c831dc..2b40d5c 100644
--- a/stack/ipv4/tcp/tcp.c
+++ b/stack/ipv4/tcp/tcp.c
@@ -23,6 +23,7 @@
 #include <linux/list.h>
 #include <linux/skbuff.h>
 #include <linux/module.h>
+#include <linux/delay.h>
 #include <net/tcp_states.h>
 #include <net/tcp.h>
 
diff --git a/stack/ipv4/tcp/timerwheel.c b/stack/ipv4/tcp/timerwheel.c
index 48bedc6..ff94329 100644
--- a/stack/ipv4/tcp/timerwheel.c
+++ b/stack/ipv4/tcp/timerwheel.c
@@ -19,6 +19,8 @@
  *
  */
 
+#include <linux/delay.h>
+
 #include <rtdm/rtdm_driver.h>
 #include "timerwheel.h"
 

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to