Skip to content

Commit

Permalink
lfs_util: fix assert support in Zephyr installation with newlib
Browse files Browse the repository at this point in the history
The standard library header in Zephyr minimal libc provides an assert
function that pulls in __ASSERT_NO_MSG.  Newlib does not.  Explicitly
bring in the file that provides the Zephyr assert infrastructure.

Upstream-Status: Inappropriate [Zephyr-specific]
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information
pabigot committed Aug 6, 2019
1 parent aed8fce commit 52b0387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lfs_util.h
Expand Up @@ -29,7 +29,11 @@
#include <stdlib.h>
#endif
#ifndef LFS_NO_ASSERT
#ifdef __ZEPHYR__
#include <sys/__assert.h>
#else /* __ZEPHYR__ */
#include <assert.h>
#endif /* __ZEPHYR__ */
#endif

#if !defined(LFS_NO_DEBUG) || \
Expand Down

0 comments on commit 52b0387

Please sign in to comment.