From: Uwe Hermann Date: Tue, 13 Feb 2018 20:54:46 +0000 (+0100) Subject: std.c: Add missing #include and _XOPEN_SOURCE. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d18bf7bdfc4df94cfad5440388a699f7fe81143b;p=libsigrok.git std.c: Add missing #include and _XOPEN_SOURCE. This is required for gettimeofday() to be available (at least on FreeBSD), causes compiler warnings otherwise. --- diff --git a/src/std.c b/src/std.c index 48f83b53..b778679b 100644 --- a/src/std.c +++ b/src/std.c @@ -25,9 +25,13 @@ * @internal */ +/* Needed for gettimeofday(), at least on FreeBSD. */ +#define _XOPEN_SOURCE 700 + #include #include #include +#include #include #include #include "libsigrok-internal.h"