diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/file_path.h | 2 | ||||
-rw-r--r-- | base/file_util_android.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/base/file_path.h b/base/file_path.h index e14655c..6887cdc 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -367,7 +367,7 @@ class FilePath { // Provide a hash function so that hash_sets and maps can contain FilePath // objects. #if defined(COMPILER_GCC) -namespace std { +namespace __gnu_cxx { template<> struct hash<FilePath> { diff --git a/base/file_util_android.cc b/base/file_util_android.cc index 59fb2de..e101e34 100644 --- a/base/file_util_android.cc +++ b/base/file_util_android.cc @@ -49,8 +49,10 @@ _mktemp(char *path) return(_gettemp(path, (int *)NULL, 0, 0) ? path : (char *)NULL); } +#ifdef __BIONIC__ __warn_references(mktemp, "warning: mktemp() possibly used unsafely; consider using mkstemp()"); +#endif char * mktemp(char *path) |