* gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
(perror_with_name, remote_close, remote_open, expect, play): Static.
+2002-07-09 David O'Brien <obrien@FreeBSD.org>
+
+ * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
+ (perror_with_name, remote_close, remote_open, expect, play): Static.
+
2002-07-08 Andrew Cagney <ac131313@redhat.com>
* config.in, configure: Regenerate.
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* Sort of a hack... */
#define EOL (EOF - 1)
as the file name for which the error was encountered.
Then return to command level. */
-void
+static void
perror_with_name (char *string)
{
#ifndef STDC_HEADERS
exit (1);
}
-void
+static void
remote_close (void)
{
close (remote_desc);
/* Open a connection to a remote debugger.
NAME is the filename used for communication. */
-void
+static void
remote_open (char *name)
{
if (!strchr (name, ':'))
/* Accept input from gdb and match with chars from fp (after skipping one
blank) up until a \n is read from fp (which is not matched) */
-void
+static void
expect (FILE *fp)
{
int fromlog;
/* Play data back to gdb from fp (after skipping leading blank) up until a
\n is read from fp (which is discarded and not sent to gdb). */
-void
+static void
play (FILE *fp)
{
int fromlog;