Skip to content

Commit 43936e6

Browse files
Merge pull request #10914 from stenslae/fix/apache-mynewt-header-build
Apache mynewt header build fix
2 parents 08539e4 + 5bd7348 commit 43936e6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,7 @@
30443044
#define HAVE_ECC
30453045
#define NO_SESSION_CACHE
30463046
#define NO_ERROR_STRINGS
3047-
#define XMALLOC_USER
3047+
#define XMALLOC_OVERRIDE
30483048
#define XMALLOC(sz, heap, type) ((void)(heap), (void)(type), os_malloc(sz))
30493049
#define XREALLOC(p, sz, heap, type) ((void)(heap), (void)(type), os_realloc(p, sz))
30503050
#define XFREE(p, heap, type) ((void)(heap), (void)(type), os_free(p))

wolfssl/wolfio.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@
520520
#elif defined(NUCLEUS_PLUS_2_3)
521521
typedef int socklen_t;
522522
#define XSOCKLENT socklen_t
523+
#elif defined(WOLFSSL_APACHE_MYNEWT)
524+
/* mn_socket doesn't provide socklen_t */
525+
#define XSOCKLENT int
523526
#else
524527
#define XSOCKLENT socklen_t
525528
#endif

0 commit comments

Comments
 (0)