projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f063fd2
)
Use futimens() instead of futimes()
author
Ingo Weinhold
<ingo_weinhold@gmx.de>
Sat, 30 Mar 2013 15:40:08 +0000
(15:40 +0000)
committer
Ingo Weinhold
<ingo_weinhold@gmx.de>
Sat, 30 Mar 2013 15:51:21 +0000
(15:51 +0000)
futimens() is POSIX, futimes() isn't.
examples/solv.c
patch
|
blob
|
history
diff --git
a/examples/solv.c
b/examples/solv.c
index
6bfacea
..
eea621d
100644
(file)
--- a/
examples/solv.c
+++ b/
examples/solv.c
@@
-1145,7
+1145,7
@@
usecachedrepo(Repo *repo, const char *repoext, unsigned char *cookie, int mark)
memcpy(cinfo->extcookie, myextcookie, sizeof(myextcookie));
}
if (mark)
memcpy(cinfo->extcookie, myextcookie, sizeof(myextcookie));
}
if (mark)
- futime
s(fileno(fp), 0);
/* try to set modification time */
+ futime
ns(fileno(fp), 0);
/* try to set modification time */
fclose(fp);
return 1;
}
fclose(fp);
return 1;
}