]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-repolist: fix redefinition of _XOPEN_SOURCE
authorMark Lodato <lodatom@gmail.com>
Sat, 4 Sep 2010 15:49:30 +0000 (11:49 -0400)
committerMark Lodato <lodatom@gmail.com>
Sat, 4 Sep 2010 18:09:24 +0000 (14:09 -0400)
Previously, ui-repolist.c set _GNU_SOURCE and then included a standard
library before including <git-compat-util.h>.  This was a problem,
because <git-compat-util.h> redefined _XOPEN_SOURCE, which is set
automatically by glibc when _GNU_SOURCE is set.  However,
<git-compat-util.h> already sets _GNU_SOURCE and includes both
<string.h> and <time.h>, so there is no need to define _GNU_SOURCE or
include either header within ui-repolist.c.

Signed-off-by: Mark Lodato <lodatom@gmail.com>

No differences found