aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar SZ Lin (林上智) <szlin@debian.org>2019-01-15 14:58:38 +0800
committerGravatar SZ Lin (林上智) <szlin@debian.org>2019-01-15 16:17:07 +0800
commitcbef31ce25d92fa3d58054328b21d5616bb57310 (patch)
tree51e9cd042808aa4229abeb492ad843c1442573fa /src
parent389180d13981f8c21424cd88b4cec0af79b55dcd (diff)
downloadnnn-cbef31ce25d92fa3d58054328b21d5616bb57310.tar.gz
Fix warning of implicit declaration of function 'strcasestr'
According to manpage of strcasestr [1], the macro function needs to be added. [1] https://linux.die.net/man/3/strcasestr Signed-off-by: SZ Lin (林上智) <szlin@debian.org>
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 67eb9bc..d3d0947 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -29,6 +29,9 @@
*/
#ifdef __linux__
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#if defined(__arm__) || defined(__i386__)
#define _FILE_OFFSET_BITS 64 /* Support large files on 32-bit */
#endif