This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [Patch]: Fix objdump breakage on systems without mmap
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Mike Frysinger' <vapier at gentoo dot org>, binutils at sourceware dot org
- Date: Tue, 19 Jun 2007 13:06:38 +1200
- Subject: 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
>