projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35f1347
)
Fixed apple file times.
author
Armin Novak
<anovak@thincast.com>
Mon, 1 Aug 2016 07:41:41 +0000
(09:41 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:04 +0000
(13:43 +0200)
winpr/libwinpr/file/file.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/file/file.c
b/winpr/libwinpr/file/file.c
index
235727b
..
6f3bd9a
100644
(file)
--- a/
winpr/libwinpr/file/file.c
+++ b/
winpr/libwinpr/file/file.c
@@
-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 */