trace-cmd: remove the compile fix patch

And instead override TARGET_CFLAGS to set _GNU_SOURCE accordingly since
this is the upstream maintainer solution.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 37152
lede-17.01
Florian Fainelli 2013-07-03 17:23:55 +00:00
parent e3a369e597
commit c6c0d9456c
2 changed files with 1 additions and 21 deletions

View File

@ -37,7 +37,7 @@ MAKE_FLAGS += \
PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins
PLUGINS_MAIN := function hrtimer mac80211 sched_switch PLUGINS_MAIN := function hrtimer mac80211 sched_switch
TARGET_CFLAGS += --std=gnu99 TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE
define Package/trace-cmd/install define Package/trace-cmd/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/trace-cmd/plugins $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/trace-cmd/plugins

View File

@ -1,20 +0,0 @@
--- a/trace-listen.c
+++ b/trace-listen.c
@@ -17,6 +17,7 @@
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
+#define _GNU_SOURCE
#define _LARGEFILE64_SOURCE
#include <dirent.h>
#include <stdio.h>
--- a/trace-record.c
+++ b/trace-record.c
@@ -17,6 +17,7 @@
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
+#define _GNU_SOURCE
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>