include guard trank/posix/pthread.h
Hallo,
I noticed that both /usr/xenomai/include/trank/trank.h and /usr/xenomai/include/trank/posix/pthread.h share the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard of pthread.h to _XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes. Frederik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread.h.patch
Type: text/x-diff
Size: 509 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20150619/2af7c747/attachment.patch>
Quoted 4 lines · Frederik Bayart
Hallo,
I noticed that both/usr/xenomai/include/trank/trank.hand/usr/xenomai/include/trank/posix/pthread.hshare the same include guard (_XENOMAI_TRANK_TRANK_H).Can this be an error ? I use compile flags 'xeno-config --skin=native --cflags' and get compile errors. If I change the include guard ofpthread.hto_XENOMAI_TRANK_POSIX_PTHREAD_H, the problem seems to be solved.In attachment a diff with my changes. Frederik
Yes, the guard is definitely wrong, will fix. Thanks for pointing this out.
Signature · 1 line
Philippe.