diff mbox series

[v2,4/16] helper: enable using of config.h header

Message ID 1502791206-2437-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/16] configure: move configure header to top of build tree | expand

Commit Message

Github ODP bot Aug. 15, 2017, 9:59 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 127 (lumag:improve-build)
 ** https://github.com/Linaro/odp/pull/127
 ** Patch: https://github.com/Linaro/odp/pull/127.patch
 ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191
 ** Merge commit sha: 3e7a44d8f4b7c90183d3bd3b57bc812f16de030f
 **/
 helper/chksum.c             | 4 ++++
 helper/cuckootable.c        | 4 ++++
 helper/eth.c                | 4 ++++
 helper/hashtable.c          | 5 +++++
 helper/ip.c                 | 4 ++++
 helper/iplookuptable.c      | 4 ++++
 helper/lineartable.c        | 4 ++++
 helper/linux/thread.c       | 4 ++++
 helper/test/chksum.c        | 4 ++++
 helper/test/cuckootable.c   | 4 ++++
 helper/test/iplookuptable.c | 4 ++++
 helper/test/linux/process.c | 4 ++++
 helper/test/linux/pthread.c | 4 ++++
 helper/test/odpthreads.c    | 4 ++++
 helper/test/parse.c         | 4 ++++
 helper/test/table.c         | 4 ++++
 helper/threads.c            | 4 ++++
 17 files changed, 69 insertions(+)
diff mbox series

Patch

diff --git a/helper/chksum.c b/helper/chksum.c
index ae70d97e..23875110 100644
--- a/helper/chksum.c
+++ b/helper/chksum.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odp.h>
 #include <odp/helper/ip.h>
 #include <odp/helper/udp.h>
diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 32800911..65972361 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /*-
  *   BSD LICENSE
  *
diff --git a/helper/eth.c b/helper/eth.c
index 9a151fa2..38dbe04a 100644
--- a/helper/eth.c
+++ b/helper/eth.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odp/helper/eth.h>
 
 #include <stdio.h>
diff --git a/helper/hashtable.c b/helper/hashtable.c
index f26b18b2..2aef8e4a 100644
--- a/helper/hashtable.c
+++ b/helper/hashtable.c
@@ -3,6 +3,11 @@ 
  *
  * SPDX-License-Identifier:   BSD-3-Clause
  */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <malloc.h>
diff --git a/helper/ip.c b/helper/ip.c
index eb73e5a0..06f9edb1 100644
--- a/helper/ip.c
+++ b/helper/ip.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odp/helper/ip.h>
 
 #include <stdio.h>
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index ac7d0587..ee98d857 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 #include <stdint.h>
 #include <errno.h>
diff --git a/helper/lineartable.c b/helper/lineartable.c
index dd4a5995..7ddb3feb 100644
--- a/helper/lineartable.c
+++ b/helper/lineartable.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:	BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <malloc.h>
diff --git a/helper/linux/thread.c b/helper/linux/thread.c
index 52d4efc5..deb1a34d 100644
--- a/helper/linux/thread.c
+++ b/helper/linux/thread.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
diff --git a/helper/test/chksum.c b/helper/test/chksum.c
index 1beae47f..995b23e1 100644
--- a/helper/test/chksum.c
+++ b/helper/test/chksum.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "odph_debug.h"
 #include <odp_api.h>
 #include <odp/helper/odph_api.h>
diff --git a/helper/test/cuckootable.c b/helper/test/cuckootable.c
index be655911..24faf360 100644
--- a/helper/test/cuckootable.c
+++ b/helper/test/cuckootable.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /*-
  *   BSD LICENSE
  *
diff --git a/helper/test/iplookuptable.c b/helper/test/iplookuptable.c
index b5d774cb..0bac4f03 100644
--- a/helper/test/iplookuptable.c
+++ b/helper/test/iplookuptable.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
diff --git a/helper/test/linux/process.c b/helper/test/linux/process.c
index e08ef868..81eb462e 100644
--- a/helper/test/linux/process.c
+++ b/helper/test/linux/process.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odph_debug.h>
 #include <odp_api.h>
 #include <odp/helper/linux/pthread.h>
diff --git a/helper/test/linux/pthread.c b/helper/test/linux/pthread.c
index 2bec0d17..b4d8caae 100644
--- a/helper/test/linux/pthread.c
+++ b/helper/test/linux/pthread.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odph_debug.h>
 #include <odp_api.h>
 #include <odp/helper/linux/pthread.h>
diff --git a/helper/test/odpthreads.c b/helper/test/odpthreads.c
index 219e1b65..4db6ec31 100644
--- a/helper/test/odpthreads.c
+++ b/helper/test/odpthreads.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /*
  * This program tests the ability of the linux helper to create ODP threads,
  * either implemented as linux pthreads or as linux processes, depending on
diff --git a/helper/test/parse.c b/helper/test/parse.c
index 0429f2cc..49a1925d 100644
--- a/helper/test/parse.c
+++ b/helper/test/parse.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odph_debug.h>
 
 #include <odp_api.h>
diff --git a/helper/test/table.c b/helper/test/table.c
index ac454da5..58d1f644 100644
--- a/helper/test/table.c
+++ b/helper/test/table.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <odph_debug.h>
 #include <odp/helper/odph_api.h>
 #include <odp_api.h>
diff --git a/helper/threads.c b/helper/threads.c
index cb747e5b..16c8ed4c 100644
--- a/helper/threads.c
+++ b/helper/threads.c
@@ -4,6 +4,10 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif