[RFC,06/17] Include <chrono> in event-loop.c

Message ID 20190224165153.5062-7-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey Feb. 24, 2019, 4:51 p.m. UTC
  Include <chrono> in event-loop.c, because it is used there.  Currently
it is included indirectly, but after the subsequent patches this will
no longer be the case.

gdb/ChangeLog
2019-02-24  Tom Tromey  <tom@tromey.com>

	* event-loop.c: Include <chrono>.
---
 gdb/ChangeLog    | 4 ++++
 gdb/event-loop.c | 2 ++
 2 files changed, 6 insertions(+)
  

Comments

Pedro Alves Sept. 26, 2019, 2:02 p.m. UTC | #1
On 2/24/19 4:51 PM, Tom Tromey wrote:
> Include <chrono> in event-loop.c, because it is used there.  Currently
> it is included indirectly, but after the subsequent patches this will
> no longer be the case.
> 
> gdb/ChangeLog
> 2019-02-24  Tom Tromey  <tom@tromey.com>
> 
> 	* event-loop.c: Include <chrono>.

OK.

Thanks,
Pedro Alves
  

Patch

diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 41ac5802703..496111a01c6 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -21,6 +21,8 @@ 
 #include "event-loop.h"
 #include "ser-event.h"
 
+#include <chrono>
+
 #ifdef HAVE_POLL
 #if defined (HAVE_POLL_H)
 #include <poll.h>