1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sock_async: include sock_async_ctx.h before sock-types

This way, the sock-types can use the sock_async_ctx_t type in their
definition without including `sock_async_ctx.h` (potentially creating
further cyclic includes).
This commit is contained in:
Martine S. Lenders 2020-02-19 18:13:20 +01:00
parent 1e74280308
commit 9b4dac7f3e
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -135,14 +135,14 @@ typedef struct sock_udp sock_udp_t; /**< forward declare for async */
typedef void (*sock_udp_cb_t)(sock_udp_t *sock, sock_async_flags_t type);
#endif /* defined(MODULE_SOCK_UDP) || defined(DOXYGEN) */
#ifdef SOCK_HAS_ASYNC_CTX
#include "sock_async_ctx.h"
#endif
#include "sock_types.h"
#ifdef MODULE_SOCK_DTLS
#include "sock_dtls_types.h"
#endif /* MODULE_SOCK_DTLS */
#ifdef SOCK_HAS_ASYNC_CTX
#include "sock_async_ctx.h"
#endif
#endif /* defined(SOCK_HAS_ASYNC) || defined(DOXYGEN) */
#if defined (__clang__)