Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3512

c_glib: Build fails due to missing features.h

    XMLWordPrintableJSON

Details

    Description

      Building the C (GLib) library test suite on Haiku fails with an error about a missing features.h:

      testbinaryprotocol.c:25:22: fatal error: features.h: No such file or directory
       #include <features.h>
                            ^
      

      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.

      Attachments

        Activity

          People

            simonsouth Simon South
            simonsouth Simon South
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: