add GNU_SOURCE for strcasestr and other CPPFLAGS - hurl - Gopher/HTTP/HTTPS file grabber
 (HTM) git clone git://git.codemadness.org/hurl
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 59def2c4c0c35c5a6fd38fe209343232f510d903
 (DIR) parent 6466dff70206fabeb89d70c893d88c0a285d1265
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 10 Aug 2021 11:30:06 +0200
       
       add GNU_SOURCE for strcasestr and other CPPFLAGS
       
       Prevents an error and warnings when compiling on Void Linux glibc.
       
       Diffstat:
         M Makefile                            |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -9,6 +9,7 @@ MANDIR = ${PREFIX}/man/man1
        
        HURL_CFLAGS = ${CFLAGS}
        HURL_LDFLAGS = -ltls ${LDFLAGS}
       +HURL_CPPFLAGS = -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE
        
        SRC = hurl.c
        OBJ = ${SRC:.c=.o}
       @@ -16,7 +17,7 @@ OBJ = ${SRC:.c=.o}
        all: ${NAME}
        
        .c.o:
       -        ${CC} ${HURL_CFLAGS} -c $<
       +        ${CC} ${HURL_CFLAGS} ${HURL_CPPFLAGS} -c $<
        
        ${OBJ}: