diff options
author | Xiang Xiao <xiaoxiang@xiaomi.com> | 2019-12-24 21:28:32 +0800 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2019-12-27 22:52:31 -0500 |
commit | 4b463992e59ad8338618b71a314d15c20525787a (patch) | |
tree | 036edb25173f532e5643ccf03b2d444e7619cc9c /lib/curl_endian.c | |
parent | 779b415a2a7801b5702de4f6241bf2c3206ca8db (diff) |
lib: fix warnings found when porting to NuttX
- Undefine DEBUGASSERT in curl_setup_once.h in case it was already
defined as a system macro.
- Don't compile write32_le in curl_endian unless
CURL_SIZEOF_CURL_OFF_T > 4, since it's only used by Curl_write64_le.
- Include <arpa/inet.h> in socketpair.c.
Closes https://github.com/curl/curl/pull/4756
Diffstat (limited to 'lib/curl_endian.c')
-rw-r--r-- | lib/curl_endian.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_endian.c b/lib/curl_endian.c index b7563b3de..a774d136e 100644 --- a/lib/curl_endian.c +++ b/lib/curl_endian.c @@ -81,6 +81,7 @@ unsigned short Curl_read16_be(const unsigned char *buf) ((unsigned short)buf[1])); } +#if (CURL_SIZEOF_CURL_OFF_T > 4) /* * write32_le() * @@ -100,7 +101,6 @@ static void write32_le(const int value, unsigned char *buffer) buffer[3] = (char)((value & 0xFF000000) >> 24); } -#if (CURL_SIZEOF_CURL_OFF_T > 4) /* * Curl_write64_le() * |