aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-18 04:07:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-18 04:07:40 +0530
commitd38f4b13d422963b06b4fb92df771aab154539e0 (patch)
treeb6f678d95a0f93c053e9666ca64ac91a5a773f58 /src/nnn.c
parentaefe96218266fec76dc35337a6ca81e37ff1d506 (diff)
downloadnnn-d38f4b13d422963b06b4fb92df771aab154539e0.tar.gz
Fix #784: support msys2 compilation
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index af494b9..7b108b6 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