<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/94320>94320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[test-suite] CLAMR musl compilation error
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
v01dXYZ
</td>
</tr>
</table>
<pre>
We should use `#include <sys/time.h>` instead of `#include <time.h>` when using `gettimeofday`/`struct timeval`. musl `time.h` doesn't include `sys/time.h` as glibc does.
Adding this include to `timer.h` fixes the problem.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkT2P2zwQhH8N1RAnkJREnQsWfs-vq6RJk4-OH2uJASUa3KUv_veB5MsFhzRksc_MDnYsYpxWAMOG_9hwamylORdzEzJ8-_6jcTnczVfgOOeaAq8InGnBVBdXn2oAzroXvCNTZ4oLtDPr_mda8LgigQ08X_7FP4D8dYaVV4zrtJET0DbOl2Dvu_DMtEAq1RPfBjebmBYtXyqmjX_z0oKHDLgyNRJ_X6XFh2RacIt8StH5nW6ZODFxfLzHELYINEd8N6D8Z0V5yC_xFyCnGfi1ZJdgaZtgunDoDrYBI0c59s_Po5LNbJw9DHoQflBOea_CIA-99pdOu86BlmMTjRKqF1r04lkqIVuvrZSjk50PgwVhWS9gsTG1Kd2WNpepiYgVzKHvlGiSdZBwL02pFV75PmRKbR0Ws2meXJ2Q9SJFJPzrQpHS3jYB0hPWSMCGE3_5dPz85XFXn5drTJZiXjmUkktTSzIz0RVZd9w6Uecp0lxd6_PC1HnzfvueriX_BE9MnfdE2_0fiW9G_Q4AAP__Va3D2A">