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 6bfacea..eea621d 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;
 }