diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-01-06 22:56:32 +0200 |
---|---|---|
committer | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-01-07 10:45:45 +0200 |
commit | 004d48aa51a5ec5488f477a7b318459ac1a09e26 (patch) | |
tree | bb81a84cc86ae7a40bde4ff3c892b3b24a3c8828 /ftmacros.h | |
parent | 1b8a2c25d4a1f6f220aea8a7039bad1227343677 (diff) |
Fix compiler warnings on MSYS2/Cygwin
/f/Projects/libpcap/fmtutils.c:114:20: warning: initialization of גchar *ג from גintג makes pointer from integer without a cast [-Wint-conversion]
114 | char *errstring = strerror_r(errnum, strerror_buf, PCAP_ERRBUF_SIZE);
| ^~~~~~~~~~
CMake executes the test for strerror_r with GNU_SOURCE defined,
but the actual application did not define it.
Diffstat (limited to 'ftmacros.h')
-rw-r--r-- | ftmacros.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ * least with HP's C compiler; hopefully doing so won't make it * *not* work with *un*-threaded code. */ -#elif defined(__linux__) || defined(linux) || defined(__linux) +#elif defined(__linux__) || defined(linux) || defined(__linux) || defined(__CYGWIN__) /* * Turn on _GNU_SOURCE to get everything GNU libc has to offer, * including asprintf(). |