giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.23k stars 381 forks source link

gettimeofday require "sys/time.h" include on macOS #103

Open bsergean opened 3 years ago

bsergean commented 3 years ago

On Linux sys/time.h exists and contains gettimeofday, so no need to put an ifdef guard around the include.

Thomasdezeeuw commented 3 years ago

Hit the same problem and can confirm that this fixes the problem.

ashatch commented 3 years ago

Also hit this problem and the fix above works on OSX 10.15.7.

jmealo commented 3 years ago

Hit this today.