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

Unnecessary include of sys/timex.h #327

Open
MarkCallow opened this issue Sep 28, 2022 · 0 comments
Open

Unnecessary include of sys/timex.h #327

MarkCallow opened this issue Sep 28, 2022 · 0 comments

Comments

@MarkCallow
Copy link
Contributor

basisu_enc.cpp includes sys/timex.h when __GNUC__ is defined. This file has recently been removed from Emscripten because Emscripten doesn't implement the 2 functions defined there.

int adjtimex(struct timex *);                                                    
int clock_adjtime(clockid_t, struct timex *); 

basisu_enc.cpp isn't using them either. The gettimeofday function it does use is defined in sys/time.h which is included by sys/timex.h.

Please change the code to #include <sys/time.h> so special steps are not needed to build with Emscripten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants