[oi-dev] g++ 4.7 headers issue	(_XOPEN_SOURCE_EXTENDED/_STD_C_99)
    Alexander Pyhalov 
    alp at rsu.ru
       
    Thu Jun  6 07:21:15 UTC 2013
    
    
  
On 06/06/2013 10:57, Alexander Pyhalov wrote:
> If I use the following patch:
>
> ---
> /export/home/build/srcs/illumos-gate/usr/src/uts/common/sys/feature_tests.h
> 2013-05-29 16:15:49.497379177 +0400
> +++ /usr/include/sys/feature_tests.h    2013-06-06 10:16:38.470538468 +0400
> @@ -275,6 +275,9 @@
>   #define        _XPG4_2
>   #define        _XPG4
>   #define        _XPG3
> +#if defined (__GNUG__)  && __cplusplus >= 199711L && defined(_STDC_C99)
> +#define _XPG6
> +#endif
>   /* X/Open CAE Specification, Issue 5 */
>   #elif  (_XOPEN_SOURCE - 0 == 500)
>   #define        _XPG5
>
> then ncurses can be compiled.
>
Oh, sorry, was typing too fast. wchar.h and wchar_iso.h also have to be 
patched.
-- 
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University
    
    
More information about the oi-dev
mailing list