Portability fixes.
authorAlan Modra <amodra@gmail.com>
Fri, 14 Apr 2000 04:14:25 +0000 (04:14 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 14 Apr 2000 04:14:25 +0000 (04:14 +0000)
binutils/ChangeLog
binutils/arlex.l
binutils/objdump.c
binutils/readelf.c
gas/ChangeLog
gas/as.h

index 71b6073..b7e2e50 100644 (file)
@@ -1,3 +1,10 @@
+2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+       * arlex.l: Add directives to increase lex buffer size.
+
+       * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
+        already included by bucomm.h.
+
 2000-04-10  Philippe De Muyter  <phdm@macqel.be>
 
        * readelf (dynamic_segment_mips_val): Call `sprintf', not
index 74e13d1..2fd94da 100644 (file)
@@ -31,6 +31,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 int linenumber;
 %}
+
+%a 10000
+%o 25000
+
 %%
 
 "ADDLIB"       { return ADDLIB; }
index a5ab114..b86be66 100644 (file)
@@ -29,12 +29,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "debug.h"
 #include "budbg.h"
 
-#ifdef ANSI_PROTOTYPES
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
 /* Internal headers for the ELF .stab-dump code - sorry.  */
 #define        BYTES_IN_WORD   32
 #include "aout/aout64.h"
index 55e68e1..152ce1e 100644 (file)
 #include "bucomm.h"
 #include "getopt.h"
 
-#ifdef ANSI_PROTOTYPES
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
 char *                 program_name = "readelf";
 unsigned int           dynamic_addr;
 bfd_size_type                  dynamic_size;
index 4bbe674..903d21c 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+        * as.h (SEEK_SET): Define if undefined.
+
 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
 
        * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
index 2106b33..c8d3787 100644 (file)
--- a/gas/as.h
+++ b/gas/as.h
@@ -211,6 +211,10 @@ extern char **environ;
 #define EXIT_FAILURE 1
 #endif
 
+#ifndef SEEK_SET
+#define SEEK_SET 0
+#endif
+
 #define obstack_chunk_alloc xmalloc
 #define obstack_chunk_free xfree