diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-31 17:46:33 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-31 17:46:33 +0000 |
commit | ec56be1b4dc25ec39c32ceab997747ad651c9d22 (patch) | |
tree | e8e6a4734fbf53dc0cc3be40f360b1fe6e8fe9e5 /gdb/gdbserver/server.h | |
parent | 5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790 (diff) | |
download | gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.zip gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.tar.gz gdb-ec56be1b4dc25ec39c32ceab997747ad651c9d22.tar.bz2 |
* configure.ac: Check for memmem declaration.
* server.c [HAVE_MALLOC_H]: Include malloc.h.
(disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
(disable_packet_qfThreadInfo): Unconditionally compile.
* server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
* configure, config.in: Regenerate.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r-- | gdb/gdbserver/server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index aedd14a..b519696 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -50,6 +50,10 @@ extern void perror (const char *); #endif #endif +#if !HAVE_DECL_MEMMEM +extern void *memmem (const void *, size_t , const void *, size_t); +#endif + #ifndef ATTR_NORETURN #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) #define ATTR_NORETURN __attribute__ ((noreturn)) |