From 25e8ba1996a7b5ea291c924b0990d706176f6fe6 Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Sat, 4 Sep 2010 11:49:30 -0400 Subject: ui-repolist: fix redefinition of _XOPEN_SOURCE Previously, ui-repolist.c set _GNU_SOURCE and then included a standard library before including . This was a problem, because redefined _XOPEN_SOURCE, which is set automatically by glibc when _GNU_SOURCE is set. However, already sets _GNU_SOURCE and includes both and , so there is no need to define _GNU_SOURCE or include either header within ui-repolist.c. Signed-off-by: Mark Lodato --- ui-repolist.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index 0a0b6ca..2c98668 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -6,12 +6,6 @@ * (see COPYING for full license text) */ -/* This is needed for strcasestr to be defined by */ -#define _GNU_SOURCE 1 -#include - -#include - #include "cgit.h" #include "html.h" #include "ui-shared.h" -- cgit v1.2.1