diff options
author | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 01:51:07 +0000 |
---|---|---|
committer | gdbadmin <gdbadmin@sourceware.org> | 2010-09-01 01:51:07 +0000 |
commit | a1723c35ac1fdb9cd0f250546c914122ad39f8c3 (patch) | |
tree | 4845de8bff4c6db56119d8dc665a87b0c6577936 /gdb/gdbserver/server.h | |
parent | 86c80b5af02e66b2d4129c00e0088cb55000dfdb (diff) | |
download | gdb-a1723c35ac1fdb9cd0f250546c914122ad39f8c3.zip gdb-a1723c35ac1fdb9cd0f250546c914122ad39f8c3.tar.gz gdb-a1723c35ac1fdb9cd0f250546c914122ad39f8c3.tar.bz2 |
include alloca.h if available.
On LynxOS, alloca is defined in allocal.h. This fixes one warning that
occurs when building GDBserver for LynxOS.
gdb/gdbserver/ChangeLog:
* configure.ac: Add configure check for alloca.
* configure, config.in: Regenerate.
* server.h: Include alloca.h if it exists.
* gdbreplay.c: Include alloca.h if it exists.
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 d612b0d..b401960 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -38,6 +38,10 @@ #include <string.h> #endif +#ifdef HAVE_ALLOCA_H +#include <alloca.h> +#endif + #if !HAVE_DECL_STRERROR #ifndef strerror extern char *strerror (int); /* X3.159-1989 4.11.6.2 */ |