author | Mark Lodato <lodatom@gmail.com> | 2010-09-04 15:49:30 (UTC) |
---|---|---|
committer | Mark Lodato <lodatom@gmail.com> | 2010-09-04 18:09:24 (UTC) |
commit | 25e8ba1996a7b5ea291c924b0990d706176f6fe6 (patch) (side-by-side diff) | |
tree | 935e6e9a5df75e98d293fc55577e9cc9f010086f | |
parent | e4ddc8f72b5a7d8c55a6c2042c7b7f945ba4b1a2 (diff) | |
download | cgit-25e8ba1996a7b5ea291c924b0990d706176f6fe6.zip cgit-25e8ba1996a7b5ea291c924b0990d706176f6fe6.tar.gz cgit-25e8ba1996a7b5ea291c924b0990d706176f6fe6.tar.bz2 |
ui-repolist: fix redefinition of _XOPEN_SOURCE
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>
-rw-r--r-- | ui-repolist.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 0a0b6ca..2c98668 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -3,18 +3,12 @@ * Copyright (C) 2006 Lars Hjemli * * Licensed under GNU General Public License v2 * (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" #include "html.h" #include "ui-shared.h" time_t read_agefile(char *path) { |