Skip to content

Commit

Permalink
posix: shm: fix build error with minimal libc
Browse files Browse the repository at this point in the history
In `lib/posix/options/shm.c` we don't include stdio.h
header but use standard SEEK_xxx definitions (i.e. `SEEK_SET`)
which cause build issues (if the minimal libc is used).

Fix that.

Signed-off-by: Evgeniy Paltsev <[email protected]>
Signed-off-by: Eugeniy Paltsev <[email protected]>
  • Loading branch information
evgeniy-paltsev committed Jul 8, 2024
1 parent 1ed04e7 commit 2badc09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/posix/options/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <string.h>
#include <stdio.h>

#include <kernel_arch_interface.h>
#include <zephyr/kernel.h>
Expand Down

0 comments on commit 2badc09

Please sign in to comment.