Sync OCTEON fix

The preprocessor selection for the WOLFSSL_GLOBAL macro for OCTEON wasn't getting selected.
This commit is contained in:
John Safranek
2019-11-06 15:56:27 -08:00
parent 22042830d6
commit 7c78130f70

View File

@ -721,7 +721,7 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
will use dynamic buffer if not big enough */
#endif
#ifdef HAVE_CAVIUM_OCTEON
#ifdef HAVE_CAVIUM_OCTEON_SYNC
/* By default, the OCTEON's global variables are all thread local. This
* tag allows them to be shared between threads. */
#include "cvmx-platform.h"
@ -730,17 +730,6 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
#define WOLFSSL_GLOBAL
#endif
#ifdef HAVE_NITROX_OCTEON
/* By default, the OCTEON's global variables are all thread local. This
* tag allows them to be shared between threads. */
#include "cvmx-platform.h"
#define WOLFSSL_GLOBAL CVMX_SHARED
#else
#define WOLFSSL_GLOBAL
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif