From 1f93099e1a598bec545a4274572640704a8826c7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 23 Sep 2020 21:58:28 -0400 Subject: [PATCH] Get rid of obsolete musl libc fix. --- osdep/OSUtils.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osdep/OSUtils.hpp b/osdep/OSUtils.hpp index 172575a09..e4b959f2f 100644 --- a/osdep/OSUtils.hpp +++ b/osdep/OSUtils.hpp @@ -211,11 +211,7 @@ public: return (int64_t)( ((tmp.QuadPart - 116444736000000000LL) / 10000L) + st.wMilliseconds ); #else struct timeval tv; -#ifdef __LINUX__ - syscall(SYS_gettimeofday,&tv,0); /* fix for musl libc broken gettimeofday bug */ -#else gettimeofday(&tv,(struct timezone *)0); -#endif return ( (1000LL * (int64_t)tv.tv_sec) + (int64_t)(tv.tv_usec / 1000) ); #endif };