[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

timex.h and RTAI 1.5 (over 2.2.16 kernel)






Hello,

I've found an unfortunate bug in the "linux/timex.h" file.  This file include "sys/time.h" and this cause any program that use the adjtimex syscall to be unable to compile (You get a lot of multiple definition error message). The only work-around, I've
made is to comment the "#include <sys/time.h>" line and add it  myself in my  (user-mode) program that use the adjtimex syscall.

However, if I comment out the include, any program that includes "linux/sched.h" won't compile. This leads me to the conclusion that it doesn't solve the problem.

I posted it a few days ago to the linux-kernel mailing list. The people there were unable to reproduce the problem and thus I conclude that this might due to the RTAI patch appliance.

Any clues ?


Best regards

Laurent Kersten

Alcatel Bell Space N.V.
Berkenrodelei 33
B-2660 Hoboken.
Tel :     00-32-3-829.54.09
Fax :     00-32-3-829.57.63