Skip to content

Commit

Permalink
[nrf noup] zephyr: Fix POSIX failures
Browse files Browse the repository at this point in the history
When using POSIX_API we need to define dummy prototype for compilation
to succeed.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed May 30, 2024
1 parent 756572e commit 9f91589
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#include <signal.h>
#ifdef CONFIG_ZEPHYR
#include <zephyr/posix/sys/select.h>
#include <zephyr/posix/signal.h>
#define signal(a, b) (void)(b)
#define alarm(a) (void)(a)
#else
#include "sys/select.h"
#endif
Expand Down

0 comments on commit 9f91589

Please sign in to comment.