Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNU/Hurd build fixes #316

Merged
merged 3 commits into from
Jul 21, 2024
Merged

GNU/Hurd build fixes #316

merged 3 commits into from
Jul 21, 2024

Commits on Jul 19, 2024

  1. Use malloc_usable_size() on any OS based on GNU libc

    malloc_usable_size() is a GNU extension in GNU libc; hence, use it
    every time GNU libc is used, rather than only on Linux.
    pinotree committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    78397e8 View commit details
    Browse the repository at this point in the history
  2. Use ftello() & fseeko() on any OS based on GNU libc

    Strictly speaking, they are available in POSIX.1-2008 [1][2], so they
    could be used on more platforms/OSes. To be cautious, enable them when
    using GNU libc, since they have been available with that libc for a
    very long time.
    
    [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html
    [2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html
    pinotree committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    2e07a4b View commit details
    Browse the repository at this point in the history
  3. Define a fallback PATH_MAX if not available

    PATH_MAX is optional in POSIX, and it is not available on GNU/Hurd.
    While it could be possible to not rely on PATH_MAX, for now provide a
    fallback definition (which should be safe enough) to get quickjs built
    on GNU/Hurd.
    pinotree committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    038b1a9 View commit details
    Browse the repository at this point in the history