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 <PaltsevEvgeniy@gmail.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
  • Loading branch information
evgeniy-paltsev authored and aescolar committed Jul 10, 2024
1 parent 8eff81a commit d8929b5
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 d8929b5

Please sign in to comment.