summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Gernhardt <benji@silverinsanity.com>2009-03-08 21:22:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-08 21:58:04 (GMT)
commitd7371a2d4d308d961d22c12ae9bc3d28cf35f029 (patch)
treebfa9095c0cbb609ee151368a6b899c7fd932e50d /Makefile
parentc567383b1e3205c895b371d42a39fbdf131032ba (diff)
downloadgit-d7371a2d4d308d961d22c12ae9bc3d28cf35f029.zip
git-d7371a2d4d308d961d22c12ae9bc3d28cf35f029.tar.gz
git-d7371a2d4d308d961d22c12ae9bc3d28cf35f029.tar.bz2
Makefile: Set compiler switch for USE_NSEC
The comments indicated that setting a Makefile variable USE_NSEC would enable the code for sub-second [cm]times. However, the Makefile variable was never turned into a compiler switch so the code was never enabled. This patch allows USE_NSEC to be noticed by the compiler. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b31085..e8cdbfb 100644
--- a/Makefile
+++ b/Makefile
@@ -932,6 +932,9 @@ endif
ifdef NO_ST_BLOCKS_IN_STRUCT_STAT
BASIC_CFLAGS += -DNO_ST_BLOCKS_IN_STRUCT_STAT
endif
+ifdef USE_NSEC
+ BASIC_CFLAGS += -DUSE_NSEC
+endif
ifdef USE_ST_TIMESPEC
BASIC_CFLAGS += -DUSE_ST_TIMESPEC
endif