aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index aa8e09507..38ce75b14 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -43,7 +43,6 @@
#include <sys/socket.h>
#include <assert.h>
#include <math.h>
-#include "../config.h"
#include "ndpi_api.h"
#include "uthash.h"
#include <sys/stat.h>
@@ -3136,7 +3135,11 @@ static void produceBpfFilter(char *filePath) {
/**
@brief MAIN FUNCTION
**/
+#ifdef APP_HAS_OWN_MAIN
+int orginal_main(int argc, char **argv) {
+#else
int main(int argc, char **argv) {
+#endif
int i;
automataUnitTest();