From 7115f7d257b5e3fb5d5d7ad6299214506fb35042 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Fri, 5 Dec 2008 19:04:17 +0100 Subject: ui-repolist: avoid build warning for strcasestr(3) The non-standard function strcasestr is only defined if _GNU_SOURCE has also been defined. Signed-off-by: Lars Hjemli --- ui-repolist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui-repolist.c b/ui-repolist.c index c23232c..2324273 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -6,6 +6,10 @@ * (see COPYING for full license text) */ +/* This is needed for strcasestr to be defined by */ +#define _GNU_SOURCE 1 +#include + #include #include "cgit.h" -- cgit v1.2.3-70-g09d2 s='form'>
cgit with sendfile supportRené 'Necoro' Neumann
summaryrefslogtreecommitdiff
Commit message (Expand)AuthorFilesLines
2007-02-08Add support for snapshotsLars Hjemli8-8/+153
2007-02-05cgit v0.2v0.2Lars Hjemli1-1/+1
2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli2-15/+37
2007-02-04Update cgitrc templateLars Hjemli1-21/+32
2007-02-04Add support for lightweight tagsLars Hjemli2-19/+37
2007-02-04Read repo-info from /etc/cgitrcLars Hjemli5-55/+120
2007-02-04Do not die if tag has no messageLars Hjemli1-2/+2
2007-02-03Fix search for non-virtual urlsLars Hjemli1-0/+6
2007-01-28Update README with install/config informationLars Hjemli1-24/+28