Fix for SGX build after C99 changes strings.h: No such file or directory.

This commit is contained in:
David Garske 2018-04-25 07:56:54 -07:00
parent 3c684886ad
commit a9f32c30da

View File

@ -332,7 +332,8 @@
#elif defined(USE_WINDOWS_API)
#define XSTRNCASECMP(s1,s2,n) _strnicmp((s1),(s2),(n))
#else
#if defined(HAVE_STRINGS_H) || defined(WOLF_C99)
#if (defined(HAVE_STRINGS_H) || defined(WOLF_C99)) && \
!defined(WOLFSSL_SGX)
#include <strings.h>
#endif
#define XSTRNCASECMP(s1,s2,n) strncasecmp((s1),(s2),(n))