Skip to content

Commit

Permalink
Merge pull request #131 from xiaoxiang781216/nuttx
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamBindle authored Mar 29, 2021
2 parents e44bef9 + c97134e commit 915bdf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mqtt_pal.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extern "C" {


/* UNIX-like platform support */
#if defined(__unix__) || defined(__APPLE__)
#if defined(__unix__) || defined(__APPLE__) || defined(__NuttX__)
#include <limits.h>
#include <string.h>
#include <stdarg.h>
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt_pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ ssize_t mqtt_pal_recvall(mqtt_pal_socket_handle fd, void* buf, size_t bufsz, int
return (ssize_t)(bufptr - start);
}

#elif defined(__unix__) || defined(__APPLE__)
#elif defined(__unix__) || defined(__APPLE__) || defined(__NuttX__)

#include <errno.h>

Expand Down

0 comments on commit 915bdf3

Please sign in to comment.