mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 12:58:53 +08:00
Fix includes in px4_tasks.h
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
#elif defined(__PX4_NUTTX)
|
||||
typedef int px4_task_t;
|
||||
|
||||
#include <sys/prctl.h>
|
||||
#define px4_prctl prctl
|
||||
|
||||
/** Default scheduler type */
|
||||
#if CONFIG_RR_INTERVAL > 0
|
||||
# define SCHED_DEFAULT SCHED_RR
|
||||
@@ -80,10 +83,7 @@ typedef int px4_task_t;
|
||||
#error "No target OS defined"
|
||||
#endif
|
||||
|
||||
#if defined (__PX4_NUTTX)
|
||||
#include <sys/prctl.h>
|
||||
#define px4_prctl prctl
|
||||
#elif defined (__PX4_LINUX)
|
||||
#if defined (__PX4_LINUX)
|
||||
#include <sys/prctl.h>
|
||||
#else
|
||||
#define PR_SET_NAME 1
|
||||
|
||||
Reference in New Issue
Block a user