From 754aa6e94f6633e5a4695f3db064c9ebedd47b0a Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Dec 2015 13:42:06 +0100 Subject: [PATCH] Work thread: Add missing header for Linux --- src/platforms/posix/work_queue/work_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platforms/posix/work_queue/work_thread.c b/src/platforms/posix/work_queue/work_thread.c index 8a88bdc505..f8ff2a52fd 100644 --- a/src/platforms/posix/work_queue/work_thread.c +++ b/src/platforms/posix/work_queue/work_thread.c @@ -45,6 +45,10 @@ #include #include #include +#ifdef __PX4_LINUX +#define _GNU_SOURCE +#endif +#include #include #include #include "work_lock.h"