]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Use futimens() instead of futimes()
authorIngo Weinhold <ingo_weinhold@gmx.de>
Sat, 30 Mar 2013 15:40:08 +0000 (15:40 +0000)
committerIngo 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

index 6bfacea0f0d9c23fb042d5223f6876658f41700f..eea621dabeade863dbab25046afbc64928f3ed37 100644 (file)
@@ -1145,7 +1145,7 @@ usecachedrepo(Repo *repo, const char *repoext, unsigned char *cookie, int mark)
       memcpy(cinfo->extcookie, myextcookie, sizeof(myextcookie));
     }
   if (mark)
-    futimes(fileno(fp), 0);    /* try to set modification time */
+    futimens(fileno(fp), 0);   /* try to set modification time */
   fclose(fp);
   return 1;
 }