[Patch]: Fix objdump breakage on systems without mmap

Danny Smith dannysmith@clear.net.nz
Tue Jun 19 01:06:00 GMT 2007


> you cant assume sys/mman.h includes prototypes for stat and 
> friends, so 
> everyone should be including sys/stat.h somehow, not just the 
> !HAVE_MMAP 
> people

You are correct.
Here is  the revised patch.

2007-06-18  Danny Smith  <dannysmith@users.sourceforge.net>

 	* objdump.c: Include sys/stat.h.

*** objdump.c.orig	Tue Jun 19 08:33:33 2007
--- objdump.c	Tue Jun 19 13:03:41 2007
***************
*** 65,70 ****
--- 65,72 ----
  #include <sys/mman.h>
  #endif
  
+ #include <sys/stat.h>
+ 
  /* Internal headers for the ELF .stab-dump code - sorry.  */
  #define	BYTES_IN_WORD	32
  #include "aout/aout64.h"

> -mike
> 



More information about the Binutils mailing list