diff options
author | Darryl Sokoloski <dsokoloski@clearfoundation.com> | 2018-04-16 13:18:04 -0400 |
---|---|---|
committer | Darryl Sokoloski <dsokoloski@clearfoundation.com> | 2018-04-24 10:21:47 -0400 |
commit | c54a8f8cfa11e551d7cddcae3e06e81a59e71cba (patch) | |
tree | ae9a3b41be50b63593d39b5d6b40377b6d027ff6 | |
parent | 7798b964fe9d8f42a19b4fb03ec8ad6e3ad76e9c (diff) |
Moved ndpi_config.h from ndpi_main.h to ndpi_main.c, and example source files.
-rw-r--r-- | example/ndpiReader.c | 4 | ||||
-rw-r--r-- | example/ndpi_util.c | 4 | ||||
-rw-r--r-- | src/include/ndpi_main.h | 1 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
4 files changed, 12 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index ddd83bb74..6a4c31ade 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -18,6 +18,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "ndpi_config.h" +#endif + #ifdef linux #define _GNU_SOURCE #include <sched.h> diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 104aa4db5..0d690e767 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "ndpi_config.h" +#endif + #include <stdlib.h> #ifdef WIN32 diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 2440060df..79eeab8f1 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -24,7 +24,6 @@ #ifndef __NDPI_MAIN_H__ #define __NDPI_MAIN_H__ -#include "ndpi_config.h" #include "ndpi_includes.h" #include "ndpi_define.h" #include "ndpi_protocol_ids.h" diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index e798dffba..dcbcc1ab9 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "ndpi_config.h" +#endif + #include <stdlib.h> #include <errno.h> #include "ahocorasick.h" |