Fixed apple file times.
authorArmin Novak <anovak@thincast.com>
Mon, 1 Aug 2016 07:41:41 +0000 (09:41 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:04 +0000 (13:43 +0200)
winpr/libwinpr/file/file.c

index 235727b..6f3bd9a 100644 (file)
@@ -359,9 +359,7 @@ static BOOL FileSetFileTime(HANDLE hFile, const FILETIME *lpCreationTime,
        int rc;
 #if defined(__APPLE__) || defined(ANDROID) || defined(__FreeBSD__)
        struct stat buf;
-#endif
-/* OpenBSD, NetBSD and DragonflyBSD support POSIX futimens */
-#if defined(ANDROID) || defined(__FreeBSD__) || defined(__APPLE__)
+       /* OpenBSD, NetBSD and DragonflyBSD support POSIX futimens */
        struct timeval timevals[2];
 #else
        struct timespec times[2]; /* last access, last modification */