Ensure to include config file in unit tests for strnlen, strlcat, and strlcpy (#1795)

This commit fixes a compiler error when building/running unit test
on a platform/system which has support for these functions.
This commit is contained in:
Abtin Keshavarzian
2017-05-22 09:33:01 -07:00
committed by Jonathan Hui
parent 679bd974a0
commit d0630b2901
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -25,6 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef OPENTHREAD_CONFIG_FILE
#include OPENTHREAD_CONFIG_FILE
#else
#include <openthread-config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "utils/wrap_string.h"
+6
View File
@@ -25,6 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef OPENTHREAD_CONFIG_FILE
#include OPENTHREAD_CONFIG_FILE
#else
#include <openthread-config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "utils/wrap_string.h"
+6
View File
@@ -25,6 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef OPENTHREAD_CONFIG_FILE
#include OPENTHREAD_CONFIG_FILE
#else
#include <openthread-config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "utils/wrap_string.h"