Question about the definition of _XOPEN_SOURCE
Heinz Junkes
junkes at fhi-berlin.mpg.de
Sun Jan 3 17:06:22 UTC 2021
Hi Sebastian,
_XOPEN_SOURCE is not set anywhere in the RTEMS header files etc..
Heinz
> On 3. Jan 2021, at 11:04, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
>
> Hello Heinz,
>
> On 01/01/2021 18:46, Heinz Junkes wrote:
>> Please excuse me if this question has already been answered. But unfortunately I have not been able to find a clear statement.
>>
>> Why is RTEMS _XOPEN_SOURCE not set with a value when building a BSP with --enable-posix?
>>
>> in the rtems-libbsd you can find a definition in some places.
>> z.B. in dhcpd/configure -D_XOPEN_SOURCE=700 and
>> in glibc-bugs.h #define _XOPEN_SOURCE 500
>> …
>>
>> That seems a little unstructured to me. I'm sure there's an explanation why this is so complicated. But which value is the correct one e.g. for PowerPC and RTEMS 5.1?
>
> the so called feature test macros should be defined by the application:
>
> https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
>
> https://man7.org/linux/man-pages/man7/feature_test_macros.7.html
>
> Which function is not defined in your setup?
>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax: +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2542 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210103/5c91c232/attachment.bin>
More information about the devel
mailing list