[OpenSmalltalk/opensmalltalk-vm] b4afea: Play the features.h dance

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[OpenSmalltalk/opensmalltalk-vm] b4afea: Play the features.h dance

Eliot Miranda-3
  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: b4afeac5f51acafd24035e14dc370eb3954c57f1
  Author: Tobias Pape <[hidden email]>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M platforms/unix/vm/include_ucontext.h

  Log Message:
  Play the features.h dance

Since configure takes care that `_GNU_SOURCE` is there
whenever supported, _not_ having that means we cannot reasonably
ensure that we can access reg names, as defined via `__USE_GNU`.

The `features.h` makes sure that `__USE_GNU` is set if and only if
`_GNU_SOURCE` is set. So Bailing when not having it is the right choice.