summaryrefslogtreecommitdiff
path: root/patch-delta.c
diff options
context:
space:
mode:
authorRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>2006-07-30 15:52:09 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-02 07:27:48 (GMT)
commitda7bad50ed0816cf2ee7f558ed154a7c67fb546d (patch)
treeca0231d3523db934f2702cea63cc05a494262590 /patch-delta.c
parent822a7d507151e1d6310f52d5b05234d65db11a88 (diff)
downloadgit-da7bad50ed0816cf2ee7f558ed154a7c67fb546d.zip
git-da7bad50ed0816cf2ee7f558ed154a7c67fb546d.tar.gz
git-da7bad50ed0816cf2ee7f558ed154a7c67fb546d.tar.bz2
Fix header breakage with _XOPEN_SOURCE.
convert-objects.c sets _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED before including <time.h>, in order to get the declaration of strptime(). This leads to breakage in cache.h, due to S_ISLNK and S_IFLNK no longer being defined by <sys/stat.h>. These definitions are protected by the __USE_BSD symbol, which is not set when _XOPEN_SOURCE is set. Moving the #defines and #include <time.h> below all other #includes does not fix the problem, however, since now _USE_XOPEN, which protects the declaration of strptime(), is now not defined (don't ask!). The fix is to #define _GNU_SOURCE, which enables the definition of practically everything. Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'patch-delta.c')
0 files changed, 0 insertions, 0 deletions