aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-20 18:29:09 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-20 19:06:19 +0530
commit362fd8ce78abe0115788b327eb16f4f9751506e7 (patch)
tree30613b6e942b75e46bfd2bd8e1db9cccf4cb4c4a /src
parent8ae2eed0f3c7489a5e8ea101be4bd363c3e53541 (diff)
downloadnnn-362fd8ce78abe0115788b327eb16f4f9751506e7.tar.gz
Define S_BLKSIZE if not defined
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ac48048..6898bb8 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -90,6 +90,10 @@
#include <ftw.h>
#include <wchar.h>
+#ifndef S_BLKSIZE
+#define S_BLKSIZE 512 /* S_BLKSIZE is missing on Android NDK (Termux) */
+#endif
+
#include "nnn.h"
#ifdef DEBUGMODE