From 8b3bdb1aee2e83c5e92b7e53c5021ca7db0b9dc9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 29 May 2002 08:34:33 +0000 Subject: 2002-05-29 Roland McGrath * stubs.c: Use __attribute__ instead of #pragma for aliases. --- pfinet/stubs.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pfinet/stubs.c b/pfinet/stubs.c index e610cbc9..cdb8a6de 100644 --- a/pfinet/stubs.c +++ b/pfinet/stubs.c @@ -1,5 +1,5 @@ /* Stub functions replacing things called from the Linux code - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -44,10 +44,13 @@ dev_init_scheduler (struct device *dev) { dev->qdisc = &qdisc_stub; } -#pragma weak dev_shutdown = dev_init_scheduler -#pragma weak dev_activate = dev_init_scheduler -#pragma weak dev_deactivate = dev_init_scheduler -#pragma weak tcp_ioctl = dev_init_scheduler +void dev_shutdown (struct device *) + __attribute__ ((alias ("dev_init_scheduler"))); +void dev_activate (struct device *) + __attribute__ ((alias ("dev_init_scheduler"))); +void dev_deactivate (struct device *) + __attribute__ ((alias ("dev_init_scheduler"))); +void tcp_ioctl () __attribute__ ((alias ("dev_init_scheduler"))); /* This isn't quite a stub, but it's not quite right either. */ __u32 secure_tcp_sequence_number(__u32 saddr, __u32 daddr, -- cgit v1.2.3