All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] include guard trank/posix/pthread.h
@ 2015-06-22  9:54 Frederik Bayart
  2015-06-22 10:26 ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Frederik Bayart @ 2015-06-22  9:54 UTC (permalink / raw)
  To: xenomai




On Friday, 19 June 2015, 15:07, Philippe Gerum <rpm@xenomai.org> wrote:
>On 06/19/2015 03:02 PM, Frederik Bayart wrote:
>
>
>
>
>> 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.
>
>-- 
>Philippe.

In the same context : to make it compile, I had to add
/usr/xenomai/include/trank/posix to
 $(shell xeno-config --skin=native --cflags).
At the moment -I/usr/xenomai/include/trank -D__XENO_COMPAT__
 -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE
 -D_REENTRANT -D__COBALT__ -I/usr/xenomai/include/alchemy
is returned.

If this is the correct solution, I can prepare a patch for
 xeno-config if desired.

Frederik


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Xenomai] include guard trank/posix/pthread.h
@ 2015-06-19 13:02 Frederik Bayart
  2015-06-19 13:07 ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Frederik Bayart @ 2015-06-19 13:02 UTC (permalink / raw)
  To: xenomai@xenomai.org

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>

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-22 17:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-22  9:54 [Xenomai] include guard trank/posix/pthread.h Frederik Bayart
2015-06-22 10:26 ` Philippe Gerum
2015-06-22 12:48   ` Philippe Gerum
2015-06-22 13:41     ` Frederik Bayart
2015-06-22 14:37       ` Frederik Bayart
2015-06-22 14:49         ` Philippe Gerum
2015-06-22 15:20           ` Frederik Bayart
2015-06-22 14:39       ` Philippe Gerum
2015-06-22 15:48         ` Frederik Bayart
2015-06-22 17:53           ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2015-06-19 13:02 Frederik Bayart
2015-06-19 13:07 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.