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.
basisu_enc.cpp
includessys/timex.h
when__GNUC__
is defined. This file has recently been removed from Emscripten because Emscripten doesn't implement the 2 functions defined there.basisu_enc.cpp
isn't using them either. Thegettimeofday
function it does use is defined insys/time.h
which is included bysys/timex.h
.Please change the code to
#include <sys/time.h>
so special steps are not needed to build with Emscripten.