summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-29 14:35:21 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-30 10:33:16 -0700
commitda3c1ce098fbfa699770447cf99cf19f6ac95fb1 (patch)
tree73041c1b25d3a2a4df46855a1a2c396c87ef17ed /libcr/coroutine.c
parentcda33a489898c18024823b4d4b6e5e0c3b2de24a (diff)
Tidy #includes
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index a4d41e8..dbeef12 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-#include <setjmp.h> /* for setjmp(), longjmp(), jmp_buf */
#include <stdint.h> /* for uint8_t */
#include <stdlib.h> /* for aligned_alloc(), free() */
#include <string.h> /* for strncpy(), memset() */
@@ -308,6 +307,7 @@
* 1. Allow us to inspect the buffer.
* 2. Do *not* save the interrupt mask.
*/
+ #include <setjmp.h> /* for setjmp(), longjmp(), jmp_buf */
typedef struct {
jmp_buf raw;
#if CONFIG_COROUTINE_MEASURE_STACK