Skip to contentSkip to conversation

include guard trank/posix/pthread.h

Xenomai Frederik Bayart 2 participants 2 messages Jun 19, 2015

lore
Share & tools
lore
#0 lore raw

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>

#1 lore raw
Quoted 4 lines · Frederik Bayart

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

Yes, the guard is definitely wrong, will fix. Thanks for pointing this out.

Signature · 1 line
Philippe.