]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Prevent unused variable warning.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 17 Feb 2020 11:51:00 +0000 (22:51 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 17 Feb 2020 11:51:00 +0000 (22:51 +1100)
openbsd-compat/bsd-misc.c

index 829e0c075cbc7bf8936a91c5b0fa5d967fd4ad55..059b6d3b3ec71ab0a447190c862d1da1ff2d028f 100644 (file)
@@ -129,7 +129,9 @@ utimensat(int fd, const char *path, const struct timespec times[2],
     int flag)
 {
        struct timeval tv[2];
+# ifdef HAVE_FUTIMES
        int ret, oflags = O_WRONLY;
+# endif
 
        tv[0].tv_sec = times[0].tv_sec;
        tv[0].tv_usec = times[0].tv_nsec / 1000;