Add missing header for Linux

This commit is contained in:
Lorenz Meier 2015-12-01 13:41:48 +01:00
parent 72e0664f1e
commit 855dcf7069
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,9 @@
#include "hrt_work.h"
#include <drivers/drv_hrt.h>
#include "px4_time.h"
#ifdef __PX4_LINUX
#define _GNU_SOURCE
#endif
#include <pthread.h>
extern pthread_t _shell_task_id;

View File

@ -48,6 +48,10 @@
#include <sched.h>
#include <unistd.h>
#include <string.h>
#ifdef __PX4_LINUX
#define _GNU_SOURCE
#endif
#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>