aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorVitaliy Ivanov <vitaliyi@interfacemasters.com>2020-01-13 16:15:58 +0200
committerVitaliy Ivanov <vitaliyi@interfacemasters.com>2020-01-13 16:15:58 +0200
commit24f2cd6fc17395b87cb5e4b078d39f689309e0e1 (patch)
tree98fc743bec8571028bbd2784aeb26f468b71bd5a /example
parentda5208ee68c1281095e62abb820780fbe7b29bdc (diff)
example: fix build warning.
ndpiReader.c:24:0: warning: "_GNU_SOURCE" redefined #define _GNU_SOURCE <command-line>:0:0: note: this is the location of the previous definition Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com>
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index a2d9885bb..2a9eb286b 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -21,7 +21,9 @@
#include "ndpi_config.h"
#ifdef linux
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <sched.h>
#endif
#include <stdio.h>