Skip to content

Commit 7da64e7

Browse files
cfriedtdkalowsk
authored andcommitted
poxi: aio: include zephyr/toolchain.h for ZRESTRICT
Previously, ZRESTRICT was used in aio.h without also including zephyr/toolchain.h. Tests may have compiled because the toolchain header was included by some other means. We should explicitly include it to ensure that ZRESTRICT is defined. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
1 parent ba3573f commit 7da64e7

File tree

1 file changed

+2
-0
lines changed
  • include/zephyr/posix

1 file changed

+2
-0
lines changed

include/zephyr/posix/aio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <sys/types.h>
1212
#include <time.h>
1313

14+
#include <zephyr/toolchain.h>
15+
1416
#ifdef __cplusplus
1517
extern "C" {
1618
#endif

0 commit comments

Comments
 (0)