author | Brian Gernhardt <benji@silverinsanity.com> | |
Sun, 8 Mar 2009 20:04:28 +0000 (16:04 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 8 Mar 2009 21:04:41 +0000 (14:04 -0700) | ||
commit | c567383b1e3205c895b371d42a39fbdf131032ba | |
tree | 4ebd878ee331e14ec5b7a165b53799917af833d6 | tree | snapshot |
parent | 110c46a909fe27f5b8aff412a78cb821300fb985 | commit | diff |
Create USE_ST_TIMESPEC and turn it on for Darwin
Not all OSes use st_ctim and st_mtim in their struct stat. In
particular, it appears that OS X uses st_*timespec instead. So add a
Makefile variable and #define called USE_ST_TIMESPEC to switch the
USE_NSEC defines to use st_*timespec.
This also turns it on by default for OS X (Darwin) machines. Likely
this is a sane default for other BSD kernels as well, but I don't have
any to test that assumption on.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Not all OSes use st_ctim and st_mtim in their struct stat. In
particular, it appears that OS X uses st_*timespec instead. So add a
Makefile variable and #define called USE_ST_TIMESPEC to switch the
USE_NSEC defines to use st_*timespec.
This also turns it on by default for OS X (Darwin) machines. Likely
this is a sane default for other BSD kernels as well, but I don't have
any to test that assumption on.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
git-compat-util.h | diff | blob | history |