Build: separate guard for futimens()
[users/heiko/exim.git] / src / src / exim_lock.c
index 068216816054e832085d9cb035daa8ae50f12ba8..2624aff5e2557ac88368bf82f86cd070c774e34c 100644 (file)
@@ -584,7 +584,7 @@ else
 if (restore_times)
   {
   struct stat strestore;
-#ifdef EXIM_HAVE_OPENAT
+#ifdef EXIM_HAVE_FUTIMENS
   int fd = open(filename, O_RDWR); /* use fd for both get & restore */
   struct timespec tt[2];