On 2025-12-11 22:08, Robert Elz wrote:
Thanks, good suggestion. Come to think of it, it's probably clearer to give only the st_ctimespec example and let any (probably zero) builders for obscure OS versions deduce the more-general case. I installed the attached further proposed patch.Prior to this (since inception) we (everything BSD derived) had st_ctimespec ... you might want to give an example of an actual use of -Dst_ctim=M and that might be a useful one to use, as it was so common
From 4d2186b0de6f6730048c4ba03728696bced472ff Mon Sep 17 00:00:00 2001 From: Paul Eggert <[email protected]> Date: Thu, 11 Dec 2025 22:31:31 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20be=20coy=20about=20st=5Fctimesp?= =?UTF-8?q?ec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
* Makefile: Use more-specific advice about -Dst_ctim=. Suggested by Robert Elz. Although in theory one could use -Dst_ctim=st_ctim.st__tim for UnixWare 7.1, that definiens would not not be a member name and it’s not worth complicating the comments here for such an obscure OS version. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 09f20100..a86e4996 100644 --- a/Makefile +++ b/Makefile @@ -286,8 +286,8 @@ LDLIBS= # -DHAVE_STRTOLL=0 if your system lacks the strtoll function+ # -DHAVE_STRUCT_STAT_ST_CTIM=0 if struct stat lacks a status-change member # of type struct timespec, so code should use st_ctime instead; -# but if the status-change member is called M rather than st_ctim, -# use -Dst_ctim=M instead (default is guessed)+ +# but if the status-change member name is st_ctimespec, +# use -Dst_ctim=ctimespec instead (default is guessed)+ # -DHAVE_STRUCT_TIMESPEC=0 if your system lacks struct timespec+ # -DHAVE_SYMLINK=0 if your system lacks the symlink function # -DHAVE_SYS_STAT_H=0 if <sys/stat.h> does not work* -- 2.51.0
