Hi all,

I got problems including stdlib.h in my rt-task.
I simply wanted to use strtol(...) to do some conversion, but my stdlib.h
including sys/select.h seems to conflict with linux/time.h included by
rt_time.h which itself is included by rt_sched. Here is my error-message:

+cc -D__KERNEL__ -DMODULE -Wall -O2  -I/usr/include/rtlinux/include -I/usr/i
nclude -+I./include   -c llc_rt.c -o llc_rt.o
+In file included from /usr/include/rtlinux/include/asm/rt_time.h:19,
+                 from /usr/include/rtlinux/include/rtl_sched.h:4,
+                 from llc_rt.c:31:
+/usr/include/linux/time.h:30: warning: `FD_SET' redefined
+/usr/include/sys/select.h:60: warning: this is the location of the previous
definition
+/usr/include/linux/time.h:31: warning: `FD_CLR' redefined
+/usr/include/sys/select.h:61: warning: this is the location of the previous
definition
+/usr/include/linux/time.h:32: warning: `FD_ISSET' redefined
+/usr/include/sys/select.h:62: warning: this is the location of the previous
definition
+/usr/include/linux/time.h:33: warning: `FD_ZERO' redefined
+/usr/include/sys/select.h:63: warning: this is the location of the previous
definition
+In file included from /usr/include/rtlinux/include/asm/rt_time.h:19,
+                 from /usr/include/rtlinux/include/rtl_sched.h:4,
+                 from llc_rt.c:31:
+/usr/include/linux/time.h:6: redefinition of `struct timespec'

Ok, I'm using the "old" 2.0.36.RTL1.1-Kernel . I would just like to know if
I am missing some important facts why someone shouldn't use stdlib.h in
rt-tasks or is it just a minor bug which is already patched in later
versions.

Any help is appreciated

Norbert


---------------------------------------------------------------
Firma TWI GmbH                 Tel:    +49 (0)721 950 77-0
Dipl.-Ing. Norbert Pfistner    Fax:    +49 (0)721 57 48 32
Industriestr. 6                E-Mail: [EMAIL PROTECTED]
D-76189 Karlsruhe              WWW:    www.TWI-germany.com




--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to