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

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

necessary correction to binutils/strings.c


From: Henry Nelson
Subject: necessary correction to binutils/strings.c
Date: Sat, 23 Nov 2002 14:08:04 +0900 (JST)

I am not a programmer nor do I have any idea what effect this may have
on the binaries produced, but the small change to binutils/strings.c
appended below as diff -c was necessary to build binutils-2.13.1. 

An excerpt of the error produced without the change is:

strings.c: In function `print_strings':
strings.c:498: parse error before `file_off'
[...]
strings.c:507: parse error before `start'
strings.c:515: `start' undeclared (first use this function)
gmake[3]: *** [strings.o] Error 1

System and build particulars:

uname -a        SunOS ews 5.6 Generic sun4m sparc SUNW,SPARCstation-4
gcc -v          gcc version 2.7.2.3
gmake -v        GNU Make 3.80

./configure --disable-nls
gmake

HIH.  henry nelson

*** binutils/strings.c.org      Sat Nov 23 13:26:43 2002
--- binutils/strings.c  Sat Nov 23 13:33:01 2002
***************
*** 93,105 ****
--- 93,109 ----
  /* The BFD section flags that identify an initialized data section.  */
  #define DATA_FLAGS (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS)
  
+ /*
  #ifdef HAVE_FOPEN64
  typedef off64_t file_off;
  #define file_open(s,m) fopen64(s,m)
  #else
+  */
  typedef off_t file_off;
  #define file_open(s,m) fopen(s,m)
+ /*
  #endif
+  */
  
  /* Radix for printing addresses (must be 8, 10 or 16).  */
  static int address_radix;




reply via email to

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