[PATCH] Makefile: Set compiler switch for USE_NSEC
- From
Brian Gernhardt <benji@silverinsanity.com>
- Date
- Mar 8, 2009, 21:22 UTC
- Message-ID
- <1236547371-88742-1-git-send-email-benji@silverinsanity.com>
- In-Reply-To
- <70A401B0-C10D-4B4D-9DCC-D0968CE5EAF7@silverinsanity.com>
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> --- Makefile | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile index 4bdaad7..b96c2b3 100644 --- a/Makefile +++ b/Makefile @@ -929,6 +929,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
-- 1.6.2.222.g01cbd