diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-12-05 19:04:17 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-12-05 19:04:17 +0100 |
commit | 7115f7d257b5e3fb5d5d7ad6299214506fb35042 (patch) | |
tree | 844631b9f2a6354fcd988a13dfb9b1d567cb6344 | |
parent | Makefile: allow cgit.conf to override platform-specific tweaks (diff) | |
download | cgit-pink-7115f7d257b5e3fb5d5d7ad6299214506fb35042.tar.gz cgit-pink-7115f7d257b5e3fb5d5d7ad6299214506fb35042.zip |
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 <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <string.h> */ +#define _GNU_SOURCE 1 +#include <string.h> + #include <time.h> #include "cgit.h" |