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

fix static build on illumos systems #61

Merged
merged 1 commit into from
Apr 19, 2020

Conversation

jclulow
Copy link
Contributor

@jclulow jclulow commented Apr 18, 2020

On illumos systems, gettimeofday() is not visible when compiling against
for the POSIX.1c-1996 standard, as requested by the definition of
_POSIX_C_SOURCE as 199506L in "lzma-sys/config.h". This routine is only
used as a fallback when clock_gettime(CLOCK_MONOTONIC) is not available,
but it definitely is here so we can enable it.

On illumos systems, gettimeofday() is not visible when compiling against
for the POSIX.1c-1996 standard, as requested by the definition of
_POSIX_C_SOURCE as 199506L in "lzma-sys/config.h".  This routine is only
used as a fallback when clock_gettime(CLOCK_MONOTONIC) is not available,
but it definitely is here so we can enable it.
@alexcrichton alexcrichton merged commit 3f4e8f3 into alexcrichton:master Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants