Skip to content

Commit

Permalink
Merge pull request #292 from nopnop2002/master
Browse files Browse the repository at this point in the history
ESP_PLATFORM has sys/poll.h
  • Loading branch information
sahlberg authored Nov 26, 2023
2 parents 77fd3c3 + 5532805 commit 22ab4c6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion include/esp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/* #define HAVE_NETINET_TCP_H 1 */

/* Define to 1 if you have the <poll.h> header file. */
#define HAVE_POLL_H 1
/* #define HAVE_POLL_H 1 */

/* Whether sockaddr struct has sa_len */
/* #undef HAVE_SOCKADDR_LEN */
Expand Down
4 changes: 0 additions & 4 deletions lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@
#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: 0 additions & 4 deletions lib/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@
#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 22ab4c6

Please sign in to comment.