aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-06-23 18:10:42 +0000
committerDoug Kwan <dougkwan@google.com>2009-06-23 18:10:42 +0000
commit3d857b98f555ee56c6fa6ed90c024424215574ed (patch)
treec68df6e845e52dc25b22b566e7d61de85004920f /gold/fileread.cc
parent27aa8d6aa032b25160328cd92c78c4f8158fa0b7 (diff)
downloadgdb-3d857b98f555ee56c6fa6ed90c024424215574ed.zip
gdb-3d857b98f555ee56c6fa6ed90c024424215574ed.tar.gz
gdb-3d857b98f555ee56c6fa6ed90c024424215574ed.tar.bz2
2009-06-23 Doug Kwan <dougkwan@google.com>
* Makefile.am (libgold_a_LIBADD): New. (ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS * Makefile.in: Regenerate. * config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New. * configure: Regenerate. * configure.ac (AC_CHECK_DECLS): Add strndup and memmem. * fileread.cc: Include sys/state.h * gold.h: Declare memmem and strndup if found missing. * gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r--gold/fileread.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index a183bd6..5cc0c34 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <sys/mman.h>
#include <sys/uio.h>
+#include <sys/stat.h>
#include "filenames.h"
#include "debug.h"