Skip to content

Commit

Permalink
iio_stresstest: Fix build under MinGW
Browse files Browse the repository at this point in the history
The <sysinfoapi.h> include is required on Windows. Not sure why it built
properly under Visual Studio, but MinGW choke on that.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Apr 22, 2021
1 parent 33fad06 commit 906b8d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/iio_stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#include <sys/sysctl.h>
#endif

#ifdef _WIN32
#include <sysinfoapi.h>
#endif

#include "iio_common.h"

#define MY_NAME "iio_stresstest"
Expand Down

0 comments on commit 906b8d0

Please sign in to comment.