bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Eliminate a prototype warnings for basename and MY(write_object_contents


From: John David Anglin
Subject: Eliminate a prototype warnings for basename and MY(write_object_contents) in vax-dec-ultrix4.3 build
Date: Wed, 15 Aug 2001 15:50:35 -0400 (EDT)

The enclosed two patches eliminate a bunch of warnings in building binutils
with vax-dec-ultrix4.3.  Ultrix doesn't have basename and thus we can always
provide a full prototype compatible with the libiberty version.  The warnings
arise because binutils doesn't check for the declaration of basename.

Please install if OK.

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2001-08-15  John David Anglin  <address@hidden>

        * bfd/aout-target.h (MY(write_object_contents)): Add prototype.

        * include/libiberty.h (basename): Provide full prototype for ultrix.

--- ./bfd/aout-target.h.orig    Fri May 11 08:23:47 2001
+++ ./bfd/aout-target.h Mon Aug 13 16:27:16 2001
@@ -250,6 +250,8 @@
    file header, symbols, and relocation.  */
 
 #ifndef MY_write_object_contents
+static boolean MY(write_object_contents) PARAMS ((bfd *));
+
 static boolean
 MY(write_object_contents) (abfd)
      bfd *abfd;
--- ./include/libiberty.h.orig  Sat Aug 11 20:31:36 2001
+++ ./include/libiberty.h       Mon Aug 13 16:16:31 2001
@@ -73,7 +73,7 @@
    declaration without arguments.  If it is 0, we checked and failed
    to find the declaration so provide a fully prototyped one.  If it
    is 1, we found it so don't provide any declaration at all.  */
-#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) 
|| defined (__OpenBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || 
(defined (HAVE_DECL_BASENAME) && !HAVE_DECL_BASENAME)
+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) 
|| defined (__OpenBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || 
defined (__ultrix__) || (defined (HAVE_DECL_BASENAME) && !HAVE_DECL_BASENAME)
 extern char *basename PARAMS ((const char *));
 #else
 # if !defined (HAVE_DECL_BASENAME)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]