Skip to content

Commit

Permalink
tests: posix: headers: fix build error when minimal libc is used
Browse files Browse the repository at this point in the history
The `tests/posix/headers/portability.posix.headers.without_posix_api`
test fails to build in case of toolchain which uses minimal libc by
default (for example ARC MWDT toolchain).

It can be easily fixed by providing sighal.h handler in minimal libc

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 1173fa5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/libc/minimal/include/signal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (c) 2024 Synopsys
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_
#define LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_

#include <zephyr/posix/signal.h>

#endif /* LIB_LIBC_MINIMAL_INCLUDE_SIGNAL_H_ */

0 comments on commit 1173fa5

Please sign in to comment.