Pre-branching Testing Request

Sebastian Huber sebastian.huber at embedded-brains.de
Fri May 22 06:22:55 UTC 2015



On 22/05/15 07:01, Sebastian Huber wrote:
>
> ----- Am 21. Mai 2015 um 23:19 schrieb Nick Withers nick.withers at anu.edu.au:
> [...]
>> I'm including sys/endian.h to get at htole16() and co., thusly in
>> collector.c:
>> ____
>>
>> #define _POSIX_C_SOURCE 200809L
>>
>> #include <assert.h>
>> #include <errno.h>
>> #include <stdbool.h>
>> #include <stdio.h>
>> #include <stdint.h>
>> #include <stdlib.h>
>> #include <string.h>
>> #include <sys/endian.h> // Non-standard hto16le() et al. functions
> The problem is that <sys/endian.h> includes indirectly <rtems.h>. This reveals that a
>
> #define _POSIX_C_SOURCE 200809L
> #include <rtems.h>
>
> is now broken since <rtems.h> depends on __BSD_VISIBLE via <sys/time.h>. It would be easy to fix <rtems/endian.h> to not include <rtems.h>, but how do we address the problem with <rtems.h>?

I fixed the problem with <sys/endian.h>. In case a

#define _POSIX_C_SOURCE 200809L
#include <rtems.h>


is a requirement, then we have to add a test case for this.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list