jserv / rv32jit

JIT-accelerated RISC-V instruction set simulator
MIT License
31 stars 7 forks source link

Add missing header file <ctime> #2

Closed higuoxing closed 1 year ago

higuoxing commented 1 year ago

This patch adds the missing header file , otherwise Clang will complain about it.

src/env.cpp:446:15: error: use of undeclared identifier 'clock_gettime'
    auto rc = clock_gettime(which_clock, &tp);
              ^
1 error generated.
make: *** [Makefile:71: build/env.o] Error 1
make: *** Waiting for unfinished jobs....
jserv commented 1 year ago

Thank @higuoxing for contributing!