On Sat, Aug 10, 2013 at 7:06 PM, Glenn Fowler <[email protected]> wrote:
>
> On Sat, 10 Aug 2013 18:37:15 +0200 Irek Szczesniak wrote:
>> On Sat, Aug 10, 2013 at 7:46 AM, Glenn Fowler <[email protected]> wrote:
>> >
>> > On Fri, 9 Aug 2013 21:30:32 +0200 Irek Szczesniak wrote:
>> >> On Fri, Aug 9, 2013 at 9:07 PM, Irek Szczesniak <[email protected]> 
>> >> wrote:
[snip]
>> That may well be impossible because you enable all standard flags you
>> know about at the same time. Which is promptly rewarded by a #undef
>> __USE_GNU in /usr/include/features.h
>
> there is no portable way to enable standards + extensions
> the standard doesn't help here either
> on some systems if you don't specify the exact date in _POSIX_foo_bar it fails

Right...

> this iffe script
>         src/lib/libast/features/standards
> attempts to find a combination that works
>
> in general ast wants "the latest posix + native extensions"
> if _GNU_SOURCE does that for linux then try adding this at the top of
> src/lib/libast/features/standards and we will trust this
> /usr/include/features.h comment:
>         _GNU_SOURCE          All of the above, plus GNU extensions.
> --
> set stdio
> if tst note{ _GNU_SOURCE works }end compile{
>                 #define _GNU_SOURCE 1
>                 #include <sys/types.h>
>                 #include <sys/stat.h>
>                 #include <stdlib.h>
>                 #include <unistd.h>
>                 #include <fcntl.h>
>                 #if !defined(__linux__) || !defined( __USE_GNU)
>                 (
>                 #endif
>         }end {
>                 #ifndef _GNU_SOURCE
>                 #define _GNU_SOURCE 1
>                 #endif
>         }
> elif ...

The problem is... it doesn't work. I've dug myself twice through the
Linux includes at night and then found that other distributions have
it different in some weired, patched&&mended way. That's why I set
|__USE_GNU| in fcntl.c "manually" ... there is no way to do it
otherwise to cover all Linux versions in one go.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to