Skip to content

Commit

Permalink
ESP_PLATFORM is sys/poll.h, not poll.h
Browse files Browse the repository at this point in the history
  • Loading branch information
nopnop2002 committed Nov 25, 2023
1 parent 832835f commit 8eccfd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@
#endif

#ifdef HAVE_POLL_H
#ifdef ESP_PLATFORM
#include <sys/poll.h>
#else
#include <poll.h>
#endif
#endif

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@
#endif

#ifdef HAVE_POLL_H
#ifdef ESP_PLATFORM
#include <sys/poll.h>
#else
#include <poll.h>
#endif
#endif

#ifdef HAVE_STRING_H
#include <string.h>
Expand Down

0 comments on commit 8eccfd8

Please sign in to comment.