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 6, 2024
1 parent dda5457 commit 9d44467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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 /* INCLUDES_H */

0 comments on commit 9d44467

Please sign in to comment.