git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Previous: Brian Gernhardt
Message 4 of 4 in “Create USE_ST_TIMESPEC and turn it on for Darwin”
  1. Create USE_ST_TIMESPEC and turn it on for DarwinBrian Gernhardt, Mar 8, 2009
  2. Junio C HamanoMar 8, 2009
  3. Brian GernhardtMar 8, 2009
  4. Makefile: Set compiler switch for USE_NSECBrian Gernhardt, Mar 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.