bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 19/21] utimens: define HAVE_WORKING_UTIMES to 1 on OS/2 kLIBC


From: KO Myung-Hun
Subject: [PATCH 19/21] utimens: define HAVE_WORKING_UTIMES to 1 on OS/2 kLIBC
Date: Sun, 30 Nov 2014 13:20:21 +0900

configure test for HAVE_WORKING_UTIMES fails on OS/2 kLIBC. But it is
required.

* lib/utimesns.c (HAVE_WORKING_UTIMES): Define to 1 on OS/2 kLIBC.

Patches from coreutils 8.8 by Paul Smedley.
---
 lib/utimens.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/utimens.c b/lib/utimens.c
index dd3ec66..b702913 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -156,6 +156,10 @@ update_timespec (struct stat const *statbuf, struct 
timespec *ts[2])
   return false;
 }
 
+#ifdef __KLIBC__ /* fs doesn't to better than seconds, but we must use 
futimes! */
+# define HAVE_WORKING_UTIMES 1
+#endif
+
 /* Set the access and modification time stamps of FD (a.k.a. FILE) to be
    TIMESPEC[0] and TIMESPEC[1], respectively.
    FD must be either negative -- in which case it is ignored --
-- 
1.8.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]