Skip to content

Commit

Permalink
Fix compilation on FreeBSD
Browse files Browse the repository at this point in the history
Linux's `<sys/timex.h>` header was used instead of
FreeBSD's <sys/time.h> due to missing preprocessor comparison.

Co-authored-by: robfram <robfram@gmail.com>
  • Loading branch information
Calinou and robfram committed Nov 19, 2021
1 parent 646a9f8 commit 9ecbdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder/basisu_enc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace basisu
{
QueryPerformanceFrequency(reinterpret_cast<LARGE_INTEGER*>(pTicks));
}
#elif defined(__APPLE__) || defined(__OpenBSD__)
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/time.h>
inline void query_counter(timer_ticks* pTicks)
{
Expand Down

0 comments on commit 9ecbdaa

Please sign in to comment.