create _SUNOS_SOURCE macro

Issue #51 resolved
Garrett D'Amore repo owner created an issue

In order to give us an escape hatch, we need either _LEGACY_SOURCE, or perhaps _SUNOS_SOURCE, as a macro that people can use to access legacy busted definitions (like old readdir_r, getlogin_r, etc.

_SUNOS_SOURCE preferred -- as that's the legacy we're aiming for.

We think it should take the for 5011000L (that leaves room for 1000 minor and micro releases, which will be more than we'll ever see.)

Probably for the first case, we'll just check if it is defined. That way we can avoid constraining the interpretation until some other use arises.

Comments (2)

  1. Log in to comment