From a3fb7f097c0d6fd4ed529b40a824ce20bf28e908 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Mon, 6 Nov 2006 15:27:54 +0100 Subject: [PATCH] Compilation fix: _GNU_SOURCE has to be defined on GNU platforms to get strcasestr(). [ From commit 7585eedd2e2a0624bf1d3ddf3683425e69cb5a5d in ELinks 0.12.GIT. --KON ] --- src/mime/mime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mime/mime.c b/src/mime/mime.c index 6b4fdfa03..695093182 100644 --- a/src/mime/mime.c +++ b/src/mime/mime.c @@ -1,5 +1,9 @@ /* Functionality for handling mime types */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE /* XXX: we _WANT_ strcasestr() ! */ +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif