From: Mark Lodato Date: Sat, 4 Sep 2010 15:49:30 +0000 (-0400) Subject: ui-repolist: fix redefinition of _XOPEN_SOURCE X-Git-Tag: v0.9~22^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25e8ba1996a7b5ea291c924b0990d706176f6fe6;p=cgit 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 --- 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"