don't create or use fork if CANT_FORK is defined.
* serial.h, ser-go32.c: now compiles, but "the obvious problems of
code written for the IBM PC" remain.
* xm-go32.h: define CANT_FORK
/* ARGSUSED */
static void
shell_escape (arg, from_tty)
/* ARGSUSED */
static void
shell_escape (arg, from_tty)
else
error ("Fork failed");
}
else
error ("Fork failed");
}
static void
make_command (arg, from_tty)
char *arg;
static void
make_command (arg, from_tty)
char *arg;
shell_escape (p, from_tty);
}
shell_escape (p, from_tty);
}
static void
show_user_1 (c, stream)
static void
show_user_1 (c, stream)
void
_initialize_command ()
{
void
_initialize_command ()
{
add_com ("shell", class_support, shell_escape,
"Execute the rest of the line as a shell command. \n\
With no arguments, run an inferior shell.");
add_com ("shell", class_support, shell_escape,
"Execute the rest of the line as a shell command. \n\
With no arguments, run an inferior shell.");
+#endif
+#ifndef CANT_FORK
add_com ("make", class_support, make_command,
"Run the ``make'' program using the rest of the line as arguments.");
add_com ("make", class_support, make_command,
"Run the ``make'' program using the rest of the line as arguments.");
add_cmd ("user", no_class, show_user,
"Show definitions of user defined commands.\n\
Argument is the name of the user defined command.\n\
add_cmd ("user", no_class, show_user,
"Show definitions of user defined commands.\n\
Argument is the name of the user defined command.\n\
the IBM PC. FIXME. -- gnu@cygnus.com, Sep92 */
#include "defs.h"
the IBM PC. FIXME. -- gnu@cygnus.com, Sep92 */
#include "defs.h"
+
+/* dummy */
+struct ttystate;
+
#include "serial.h"
#include <sys/dos.h>
#include "serial.h"
#include <sys/dos.h>
+serial_raw (fd, old)
+int fd;
+struct ttystate *old;
{
/* Always in raw mode */
}
{
/* Always in raw mode */
}
dosasync_write(fd, str, len);
}
dosasync_write(fd, str, len);
}
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef __GO32__
+
+/* Then you use the asynctsr */
+
+#else
#ifdef HAVE_TERMIO
#include <termios.h>
#ifdef HAVE_TERMIO
#include <termios.h>
};
#endif /* not HAVE_TERMIO */
};
#endif /* not HAVE_TERMIO */
/* Return a sensible default name for a serial device, something which
can be used as an argument to serial_open. */
/* Return a sensible default name for a serial device, something which
can be used as an argument to serial_open. */
/* Define this lseek(n) != nth byte of file */
#define LSEEK_NOT_LINEAR
/* Define this lseek(n) != nth byte of file */
#define LSEEK_NOT_LINEAR