Simon South created THRIFT-3512:
-----------------------------------

             Summary: 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


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)

Reply via email to