diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2020-04-19 09:31:55 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2020-04-19 11:39:35 +0300 |
commit | b78dd64a2bfd18d64608f8592ab4f7ec9ab562de (patch) | |
tree | d4541580a5e43247e58bd2304a52b2139f41fcb2 | |
parent | 11368eb156512702cd381bfb05d5e387b7b1d132 (diff) | |
download | bdwgc-b78dd64a2bfd18d64608f8592ab4f7ec9ab562de.tar.gz |
Eliminate 'implicit declaration of sbrk' gcc warning if -std=c11 on Cygwin
* include/private/gc_priv.h [__CYGWIN__ && !USE_MMAP && !_GNU_SOURCE]
(_GNU_SOURCE): Define.
-rw-r--r-- | include/private/gc_priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 5c39d6a5..30974004 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -27,7 +27,8 @@ #endif #if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) \ - || (defined(__CYGWIN__) && defined(GC_THREADS))) && !defined(_GNU_SOURCE) + || (defined(__CYGWIN__) && (defined(GC_THREADS) || !defined(USE_MMAP)))) \ + && !defined(_GNU_SOURCE) /* Can't test LINUX, since this must be defined before other includes. */ # define _GNU_SOURCE 1 #endif |