From 9b4dac7f3e6ed8ce831e305bf1b0f2d82b526544 Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Wed, 19 Feb 2020 18:13:20 +0100 Subject: [PATCH] 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). --- sys/include/net/sock/async/types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/include/net/sock/async/types.h b/sys/include/net/sock/async/types.h index 5bb79938f7..7a17718e45 100644 --- a/sys/include/net/sock/async/types.h +++ b/sys/include/net/sock/async/types.h @@ -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__)