This is the mail archive of the binutils@sourceware.org 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]

RE: [Patch]: Fix objdump breakage on systems without mmap


> 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
> 


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