diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-06-02 15:43:35 -0700 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2017-05-31 15:56:02 -0700 |
commit | dc1189f7c82faead502761da70a993d914de29e0 (patch) | |
tree | 56d2caf5d03d8b55e24c3d2803c3ff0ec318e43b | |
parent | eecb0a5b696c830e3db5019654141dc58fbef825 (diff) |
update_engine: remove deprecated defines
Glibc 2.23 will pop warning like
This CL fixes that.
BUG=chromium:616784
TEST=upate_engine builds with glibc 2.23
Reviewed-on: https://chromium-review.googlesource.com/349275
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
(cherry picked from commit a435daa1be828dc8e6001c35bfa17514860f4fcc)
Change-Id: If4e30a699fdfb76e192568fff099e713990f9e47
-rw-r--r-- | p2p_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p2p_manager.cc b/p2p_manager.cc index 127e5ff9..1ee124dc 100644 --- a/p2p_manager.cc +++ b/p2p_manager.cc @@ -16,6 +16,9 @@ // This provides access to timestamps with nanosecond resolution in // struct stat, See NOTES in stat(2) for details. +#ifndef _DEFAULT_SOURCE +#define _DEFAULT_SOURCE +#endif #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif |