mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 14:23:34 +08:00
Do not redefine GNU source in modules
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include <px4_config.h>
|
#include <px4_config.h>
|
||||||
#include <px4_time.h>
|
#include <px4_time.h>
|
||||||
#include <px4_tasks.h>
|
#include <px4_tasks.h>
|
||||||
|
#include <px4_defines.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -36,9 +36,6 @@
|
|||||||
#include "px4_tasks.h"
|
#include "px4_tasks.h"
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#ifdef __PX4_LINUX
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#endif
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#define LOG_TAG "uORBKraitFastRpcChannel.cpp"
|
#define LOG_TAG "uORBKraitFastRpcChannel.cpp"
|
||||||
|
|||||||
@@ -39,9 +39,6 @@
|
|||||||
#include <drivers/drv_pwm_output.h>
|
#include <drivers/drv_pwm_output.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#ifdef __PX4_LINUX
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#endif
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
extern "C" __EXPORT hrt_abstime hrt_reset(void);
|
extern "C" __EXPORT hrt_abstime hrt_reset(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user