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

static lib failing on linux #25

Open
SushilRagoonath opened this issue Mar 23, 2021 · 2 comments
Open

static lib failing on linux #25

SushilRagoonath opened this issue Mar 23, 2021 · 2 comments

Comments

@SushilRagoonath
Copy link
Contributor

trying to build a static lib

../../third_party/include/gs/impl/../external/glfw/posix_time.c:50:23: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)                                                                              
   50 |     if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)                                                                                                                                                            

Got this error, on an arch distro.

@ranoke
Copy link

ranoke commented Aug 18, 2021

-D_POSIX_C_SOURCE=199309L should do the work

@SushilRagoonath
Copy link
Contributor Author

This works, I guess I should close this issue?

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

No branches or pull requests

2 participants