file_allocator.cpp compilation fails due to missing posix_fallocate() in uClibc

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.0-rc6
    • Component/s: Build
    • Environment:
      MIPS, 32-bit, uClibc
    • Fully Compatible
    • Linux
    • Hide

      Build for a platform missing posix_fallocate()

      Show
      Build for a platform missing posix_fallocate()
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      posix_fallocate() is used in file_allocator.cpp but some C library doesn't provide it (e.g uClibc).

      This seems to be the case even when we change the preprocessor check form _linux_ to the documented _XOPEN_SOURCE >= 600 || __POSIX_C_SOURCE >= 200112L.

            Assignee:
            Benety Goh
            Reporter:
            Raffaele Rossi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: