Re: [PATCH 3/3] core: convert build-time USE_NSEC into runtime core.useNanosec

Patrick Steinhardt <[email protected]>
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
On Fri, Aug 07, 2026 at 07:56:26AM -0400, D. Ben Knoble wrote:
> diff --git a/compat/posix.h b/compat/posix.h
> index e2e794cad7..51ee03233b 100644
> --- a/compat/posix.h
> +++ b/compat/posix.h
> @@ -487,7 +487,6 @@ int git_qsort_s(void *base, size_t nmemb, size_t size,
>  } while (0)
>  
>  #ifdef NO_NSEC
> -#undef USE_NSEC
>  #define ST_CTIME_NSEC(st) 0
>  #define ST_MTIME_NSEC(st) 0
>  #else

Ah, I was about to ask whether all platforms even support nanoseconds.
But I wasn't aware that we have both NO_NSEC and USE_NSEC, so we still
know to not use nanoseconds if unsupported by the platform.

Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.