From 304270b6be4c0983933af3f6fe4c6b686a99a99d Mon Sep 17 00:00:00 2001 From: Andrey Volkov Date: Mon, 10 Jun 2002 19:19:37 +0000 Subject: [PATCH] ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc --- gdb/ChangeLog | 6 ++++++ gdb/ser-e7kpc.c | 12 ++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5285f49ee8f..37b511d3b4e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-10 Andrey Volkov + + * ser-e7kpc.c: Fix duplicated define and call of + _initialize_ser_e7000pc + + 2002-06-09 Daniel Jacobowitz * signals/signals.c (target_signal_from_host): Fix #ifdef diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c index 49b2c89c324..063cca13d63 100644 --- a/gdb/ser-e7kpc.c +++ b/gdb/ser-e7kpc.c @@ -423,16 +423,12 @@ static struct serial_ops e7000pc_ops = e7000pc_noop, /* wait for output to drain */ }; -void -_initialize_ser_e7000pc (void) -{ - serial_add_interface (&e7000pc_ops); -} -#else +#endif /*_WIN32 or __GO32__*/ void _initialize_ser_e7000pc (void) { - +#if defined __GO32__ || defined _WIN32 + serial_add_interface (&e7000pc_ops); +#endif } -#endif -- 2.30.2