This adds support for building the LwIP unit tests on MacOS 10.13
with clang 9.0.0
Summary of changes:
1) MacOS doesn't have lpthreads or lrt (omit usage)
2) check.h causes 'error: token pasting of ',' and __VA_ARGS__ is a GNU extension'
with clang 9.0.0 (suppress for now, may be able to use -std=gnu? to turn on GNU extensions)
3) check installed via brew doesn't have a separate subunit lib (omit usage)
4) clang on MacOS doesn't support --start-group (omit usage)
This fixes printing the IPv6 linklocal address when LWIP_DEBUGF is off.
Previously an empty address was printed in this case, even though
numerous other IP address information is printed from test.c
This makes it really easy to see the linklocal address when the win32
port powers on
The pcapif didn't set NETIF_FLAG_MLD6 which resulted in the solicit node
multicast group not being joined and thus no external host was able to
solicit our hardware address
This can be tested by pinging the win32 port from another host via IPv6
Add support to use Darwin byte order functions instead of LwIP's macros.
These were being pulled in through system includes used in the Unix port files.
Pull sys/types.h in cc.h to get the Darwin macros and use them throughout
In sio.c a number of non-POSIX types/symbols are used, by default MacOS is compiling
with _POSIX_C_SOURCE which guards these additional items. To enable them, we define
_DARWIN_C_SOURCE before any system includes
In unixif.c string.h was not included yet memset and friends are being used. This
caused Wimplicit-function-declaration warnings with clang
This only fixes issue seen in the source, the Makefiles need additional changes to
build with MacOS
ping_time is only used in LWIP_DEBUGF statements. When LWIP_DEBUG is
not defined (and by extension LWIP_DEBUGF is a no-op), this causes
compiler warning 550 with the ARMCC compiler:
'ping_time was set but never used'