Do not redefine GNU source in modules

This commit is contained in:
Lorenz Meier
2015-12-01 13:49:55 +01:00
parent 754aa6e94f
commit 5f9da470bb
3 changed files with 1 additions and 6 deletions
+1
View File
@@ -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);