From: Arun Prakash Jana Date: Tue, 17 Nov 2020 22:37:03 +0000 (+0530) Subject: Fix #784: support msys2 compilation X-Git-Tag: v3.6~64 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d38f4b13d422963b06b4fb92df771aab154539e0;p=nnn.git Fix #784: support msys2 compilation --- diff --git a/src/nnn.c b/src/nnn.c index af494b99..7b108b65 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -28,7 +28,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef __linux__ +#if defined(__linux__) || defined(MINGW) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif