This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix some -Werror failures


We can't include "getopt.h" on glibc systems until we've got <features.h>. 
Committed as obvious.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2002-01-29  Daniel Jacobowitz  <drow@mvista.com>

	* objdump.c: Include "getopt.h" after "bucomm.h" so that
	__GNU_LIBRARY__ will be defined.
	* size.c: Likewise.

Index: objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.47
diff -u -r1.47 objdump.c
--- objdump.c	2002/01/23 16:12:55	1.47
+++ objdump.c	2002/01/29 16:44:30
@@ -20,9 +20,9 @@
 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "bfd.h"
-#include "getopt.h"
 #include "progress.h"
 #include "bucomm.h"
+#include "getopt.h"
 #include "safe-ctype.h"
 #include "dis-asm.h"
 #include "libiberty.h"
Index: size.c
===================================================================
RCS file: /cvs/src/src/binutils/size.c,v
retrieving revision 1.11
diff -u -r1.11 size.c
--- size.c	2002/01/25 15:37:02	1.11
+++ size.c	2002/01/29 16:44:30
@@ -29,9 +29,9 @@
    out of luck; there's no --compatibility or --pedantic option.  */
 
 #include "bfd.h"
-#include "getopt.h"
 #include "bucomm.h"
 #include "libiberty.h"
+#include "getopt.h"
 
 #ifndef BSD_DEFAULT
 #define BSD_DEFAULT 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]