]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #784: support msys2 compilation
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 17 Nov 2020 22:37:03 +0000 (04:07 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 17 Nov 2020 22:37:40 +0000 (04:07 +0530)
src/nnn.c

index af494b991f4d1f7c2e1f7d462feaad5d5766c587..7b108b65b45e0e369386e9529eac60cae3f7ec25 100644 (file)
--- 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