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/gdbreplay.c | |
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/gdbreplay.c')
-rw-r--r-- | gdb/gdbserver/gdbreplay.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index 44e325b..4996ffa 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -57,10 +57,12 @@ #if HAVE_MALLOC_H #include <malloc.h> #endif - #if USE_WIN32API #include <winsock2.h> #endif +#if HAVE_ALLOCA_H +#include <alloca.h> +#endif #ifndef HAVE_SOCKLEN_T typedef int socklen_t; |