You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Aki Sukegawa (JIRA)" <ji...@apache.org> on 2016/01/02 19:13:40 UTC

[jira] [Resolved] (THRIFT-3512) c_glib: Build fails due to missing features.h

     [ https://issues.apache.org/jira/browse/THRIFT-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aki Sukegawa resolved THRIFT-3512.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0

committed

> c_glib: Build fails due to missing features.h
> ---------------------------------------------
>
>                 Key: THRIFT-3512
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3512
>             Project: Thrift
>          Issue Type: Bug
>          Components: C glib - Library
>    Affects Versions: 0.9.4
>         Environment: gcc 4.8.5 on Haiku hrev49940 (x86)
>            Reporter: Simon South
>            Assignee: Simon South
>            Priority: Minor
>              Labels: c_glib, library, test-suite
>             Fix For: 1.0
>
>
> Building the C (GLib) library test suite on Haiku fails with an error about a missing {{features.h}}:
> {noformat}
> testbinaryprotocol.c:25:22: fatal error: features.h: No such file or directory
>  #include <features.h>
>                       ^
> {noformat}
> This header appears to be part of GNU libc and is not defined by POSIX, which explains why it would not be available on Haiku. The same applies to the BSDs, for which I notice a preprocessor directive was added that explicitly checks for these platforms.
> A better solution is probably to omit including the header whenever GNU libc is not being used, rather than listing every platform on which it is not available.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)