Skip to content

Commit

Permalink
Merge pull request #291 from nopnop2002/master
Browse files Browse the repository at this point in the history
ESP_PLATFORM is sys/poll.h, not poll.h
  • Loading branch information
sahlberg authored Nov 25, 2023
2 parents 832835f + 8eccfd8 commit 77fd3c3
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 77fd3c3

Please sign in to comment.