summaryrefslogtreecommitdiff
path: root/pfinet/stubs.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-29 08:34:33 +0000
committerRoland McGrath <roland@gnu.org>2002-05-29 08:34:33 +0000
commit8b3bdb1aee2e83c5e92b7e53c5021ca7db0b9dc9 (patch)
treede9636ade0739410aa9567379188f00060f5b6a1 /pfinet/stubs.c
parenta3dd458b132910551fbfc2765ba90538fd3ec69a (diff)
2002-05-29 Roland McGrath <roland@frob.com>
* stubs.c: Use __attribute__ instead of #pragma for aliases.
Diffstat (limited to 'pfinet/stubs.c')
-rw-r--r--pfinet/stubs.c13
1 files 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,