summaryrefslogtreecommitdiffstats
path: root/tools/iio/Makefile
diff options
context:
space:
mode:
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>2015-02-26 10:49:26 +0200
committerJonathan Cameron <jic23@kernel.org>2015-03-09 17:17:26 +0000
commit976d9ab112bdef7b25827f576b33068704df78ee (patch)
treeb8f74336d268657db772310d6a6dc433c935db2f /tools/iio/Makefile
parent817020cfb3a2649064a1e14e083934234e2c208d (diff)
downloadblackbird-obmc-linux-976d9ab112bdef7b25827f576b33068704df78ee.tar.gz
blackbird-obmc-linux-976d9ab112bdef7b25827f576b33068704df78ee.zip
tools: iio: Define _GNU_SOURCE in Makefile
Definition of _GNU_SOURCE is needed to get rid of some warnings, such as: warning: implicit declaration of function `asprintf'. generic_buffer.c and iio_event_monitor.c define _GNU_SOURCE, but it is also needed in lsiio.c and iio_utils.c. For this reason, this patch adds the definition in Makefile and removes it from where it already exists. Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio/Makefile')
-rw-r--r--tools/iio/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iio/Makefile b/tools/iio/Makefile
index 83813ad379f9..bf7ae6d6612a 100644
--- a/tools/iio/Makefile
+++ b/tools/iio/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -D_GNU_SOURCE
all: iio_event_monitor lsiio generic_buffer
OpenPOWER on IntegriCloud