Browse Source

Add missing header for Linux

sbg
Lorenz Meier 9 years ago
parent
commit
855dcf7069
  1. 3
      src/platforms/posix/px4_layer/px4_posix_impl.cpp
  2. 4
      src/platforms/posix/px4_layer/px4_posix_tasks.cpp

3
src/platforms/posix/px4_layer/px4_posix_impl.cpp

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

4
src/platforms/posix/px4_layer/px4_posix_tasks.cpp

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

Loading…
Cancel
Save