aboutsummaryrefslogtreecommitdiff
path: root/ftmacros.h
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-01-06 22:56:32 +0200
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-01-07 10:45:45 +0200
commit004d48aa51a5ec5488f477a7b318459ac1a09e26 (patch)
treebb81a84cc86ae7a40bde4ff3c892b3b24a3c8828 /ftmacros.h
parent1b8a2c25d4a1f6f220aea8a7039bad1227343677 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftmacros.h b/ftmacros.h
index cd3daebd..bb08a11a 100644
--- a/ftmacros.h
+++ b/ftmacros.h
@@ -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().