Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf noup] zephyr: Resolve POSIX signal type redefinition conflict
Browse files Browse the repository at this point in the history
Supplicant will now use POSIX signal implementation from Zephyr, the
same wasy as it's done for the upstream (Zephyr) supplicant, as
using libc signal conflicts on sigset_t type definition.

Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
rlubos committed Mar 21, 2024
1 parent e46a24a commit a90d6b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
#include <zephyr/posix/sys/select.h>
#include <zephyr/posix/sys/socket.h>
#include <zephyr/posix/unistd.h>
#include <zephyr/posix/signal.h>
#else /* defined(CONFIG_POSIX_API) */
#include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h>
#endif /* defined(CONFIG_POSIX_API) */
#include <zephyr/shell/shell.h>
#endif /* defined(CONFIG_ZEPHYR) */

#define signal(a, b) (void)(b)
#endif /* defined(CONFIG_ZEPHYR) */
#endif /* INCLUDES_H */

0 comments on commit a90d6b5

Please sign in to comment.