Nicola Pace wrote: > I am trying to compile xenomai.2.2-rc1, but compiling the posix skin I > get the error : > > /usr/src/xenomai-2.2-rc1/include/posix/time.h:103: parse error before > 'clock_id' > > Some Suggestions ?
Your libc is likely a bit old and does not define clockid_t, what version of glibc are you using ? Could you try the attached patch ? Maybe other definitions than clockid_t are missing, timer_t for example. -- Gilles Chanteperdrix.
Index: include/posix/time.h =================================================================== --- include/posix/time.h (revision 1135) +++ include/posix/time.h (working copy) @@ -48,6 +48,11 @@ #define CLOCK_MONOTONIC 1 #endif /* CLOCK_MONOTONIC */ +#ifndef __clockid_t_defined +#define __clockid_t_defined 1 +typedef int clockid_t; +#endif /* !__clockid_t_defined */ + #if defined(__KERNEL__) || defined(__XENO_SIM__) struct sigevent;
_______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help