mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
fix compiling altcp_tls_mbedtls sources/headers if mbedtls is not available
This commit is contained in:
parent
856b49a057
commit
720f9b3a0b
@ -52,6 +52,10 @@
|
|||||||
|
|
||||||
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
|
#include "lwip/apps/altcp_tls_mbedtls_opts.h"
|
||||||
|
|
||||||
|
#if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS
|
||||||
|
|
||||||
#include "altcp_tls_mbedtls_mem.h"
|
#include "altcp_tls_mbedtls_mem.h"
|
||||||
#include "altcp_tls_mbedtls_structs.h"
|
#include "altcp_tls_mbedtls_structs.h"
|
||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
@ -207,4 +211,6 @@ altcp_mbedtls_free_config(void *item)
|
|||||||
LWIP_ASSERT("item != NULL", item != NULL);
|
LWIP_ASSERT("item != NULL", item != NULL);
|
||||||
mem_free(item);
|
mem_free(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */
|
||||||
#endif /* LWIP_ALTCP */
|
#endif /* LWIP_ALTCP */
|
||||||
|
@ -47,6 +47,10 @@
|
|||||||
|
|
||||||
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
|
#include "lwip/apps/altcp_tls_mbedtls_opts.h"
|
||||||
|
|
||||||
|
#if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS
|
||||||
|
|
||||||
#include "altcp_tls_mbedtls_structs.h"
|
#include "altcp_tls_mbedtls_structs.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -63,6 +67,6 @@ void altcp_mbedtls_free_config(void *item);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */
|
||||||
#endif /* LWIP_ALTCP */
|
#endif /* LWIP_ALTCP */
|
||||||
|
|
||||||
#endif /* LWIP_HDR_ALTCP_TLS_H */
|
#endif /* LWIP_HDR_ALTCP_TLS_H */
|
||||||
|
@ -43,6 +43,10 @@
|
|||||||
|
|
||||||
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
|
#include "lwip/apps/altcp_tls_mbedtls_opts.h"
|
||||||
|
|
||||||
|
#if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS
|
||||||
|
|
||||||
#include "lwip/altcp.h"
|
#include "lwip/altcp.h"
|
||||||
#include "lwip/pbuf.h"
|
#include "lwip/pbuf.h"
|
||||||
|
|
||||||
@ -76,6 +80,6 @@ typedef struct altcp_mbedtls_state_s {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */
|
||||||
#endif /* LWIP_ALTCP */
|
#endif /* LWIP_ALTCP */
|
||||||
|
|
||||||
#endif /* LWIP_HDR_ALTCP_MBEDTLS_STRUCTS_H */
|
#endif /* LWIP_HDR_ALTCP_MBEDTLS_STRUCTS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user