| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |  | 
| 2 // Use of this source code is governed by a BSD-style license that can be |  | 
| 3 // found in the LICENSE file. |  | 
| 4 |  | 
| 5 #ifndef COMPONENTS_FILESYSTEM_FUTIMENS_H_ |  | 
| 6 #define COMPONENTS_FILESYSTEM_FUTIMENS_H_ |  | 
| 7 |  | 
| 8 #include <sys/stat.h> |  | 
| 9 |  | 
| 10 #include "build/build_config.h" |  | 
| 11 |  | 
| 12 // For Android: The NDK/C library we currently build against doesn't have |  | 
| 13 // |futimens()|, but has |utimensat()|. Provide the former (in terms of the |  | 
| 14 // latter) for now. Remove this file and futimens_android.cc when |futimens()| |  | 
| 15 // becomes generally available (see |  | 
| 16 // https://android-review.googlesource.com/#/c/63321/). |  | 
| 17 |  | 
| 18 #if defined(OS_ANDROID) |  | 
| 19 extern "C" { |  | 
| 20 |  | 
| 21 int futimens(int fd, const struct timespec times[2]); |  | 
| 22 |  | 
| 23 }  // extern "C" |  | 
| 24 #endif |  | 
| 25 |  | 
| 26 #endif  // COMPONENTS_FILESYSTEM_FUTIMENS_H_ |  | 
| OLD | NEW | 
|---|