Merge remote-tracking branch 'public/pr/1198' into development

This commit is contained in:
Simon Butcher 2018-07-24 17:20:17 +01:00
commit 2c92949e0a
12 changed files with 51 additions and 47 deletions

View file

@ -15,6 +15,11 @@ if(NOT PERL_FOUND)
message(FATAL_ERROR "Cannot build test suites without Perl")
endif()
# Enable definition of various functions used throughout the testsuite
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
# on non-POSIX platforms.
add_definitions("-D_POSIX_C_SOURCE=200809L")
function(add_test_suite suite_name)
if(ARGV1)
set(data_name ${ARGV1})

View file

@ -12,6 +12,11 @@ LOCAL_LDFLAGS = -L../library \
-lmbedx509$(SHARED_SUFFIX) \
-lmbedcrypto$(SHARED_SUFFIX)
# Enable definition of various functions used throughout the testsuite
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
# on non-POSIX platforms.
LOCAL_CFLAGS += -D_POSIX_C_SOURCE=200809L
ifndef SHARED
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
else

View file

@ -36,6 +36,7 @@ typedef UINT32 uint32_t;
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#include <unistd.h>
#include <strings.h>
#endif
/*----------------------------------------------------------------------------*/