[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libiohelp
From: |
James A Morrison |
Subject: |
libiohelp |
Date: |
Sat, 1 Jun 2002 13:11:26 -0400 (EDT) |
Hey,
I tried to compile the Hurd, and it failed on libiohelp. I can't remember
the error message, but here is the fix. It wanted the declarations before
the definitions of the functions.
James A. Morrison
2002-06-01 James A. Morrison <ja2morri@uwaterloo.ca>
* shared.c: Move function declarations ahead of the functions
definitions.
Index: shared.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libiohelp/shared.c,v
retrieving revision 1.1
diff -u -r1.1 shared.c
--- shared.c 18 Nov 1996 23:48:14 -0000 1.1
+++ shared.c 1 Jun 2002 17:01:13 -0000
@@ -1,5 +1,5 @@
/* Default functions
- Copyright (C) 1996 Free Software Foundation
+ Copyright (C) 1996,2002 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -19,6 +19,10 @@
#include "iohelp.h"
/* These definitions exist to satisfy the linker. */
+void
+iohelp_fetch_shared_data (void *foo) __attribute__ ((weak));
+void
+iohelp_put_shared_data (void *foo) __attribute__ ((weak));
void
@@ -32,10 +36,3 @@
{
abort ();
}
-
-
-void
-iohelp_fetch_shared_data (void *foo) __attribute__ ((weak));
-void
-iohelp_put_shared_data (void *foo) __attribute__ ((weak));
-
- libiohelp,
James A Morrison <=