From cbef31ce25d92fa3d58054328b21d5616bb57310 Mon Sep 17 00:00:00 2001 From: =?utf8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= Date: Tue, 15 Jan 2019 14:58:38 +0800 Subject: [PATCH] Fix warning of implicit declaration of function 'strcasestr' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (林上智) --- src/nnn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index 67eb9bcf..d3d09478 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 -- 2.48.1