37 lines
958 B
Text
37 lines
958 B
Text
$NetBSD: patch-aa,v 1.4 2005/12/19 17:29:35 joerg Exp $
|
|
|
|
--- src/dspcom.c.orig 1998-09-28 01:41:19.000000000 -0500
|
|
+++ src/dspcom.c
|
|
@@ -49,6 +49,7 @@ CHAR *InPtr;
|
|
#if !defined(AMIGADOS) && !defined(Think_C) && !defined(WIN32)
|
|
#include <unistd.h>
|
|
#endif
|
|
+#include <errno.h>
|
|
|
|
#if defined(sun) && defined(sparc) && defined(svr4)
|
|
#include <sys/filio.h>
|
|
@@ -1099,7 +1100,7 @@ InputCommand (void)
|
|
#ifdef NONDSP
|
|
s[0] = sx[0] = '\0';
|
|
while (!sx[0])
|
|
- (void) gets (sx);
|
|
+ (void) fgets (sx, 80, stdin); sx[79] = '\0';
|
|
#else
|
|
fflush (stdout);
|
|
#ifdef MSDOS
|
|
@@ -1444,7 +1445,6 @@ ElapsedTime (SHORT iop)
|
|
struct timeval tv;
|
|
#ifndef MSDOS
|
|
int nchar;
|
|
- extern int errno;
|
|
int i;
|
|
#ifdef FIONREAD
|
|
if (i = ioctl ((int) 0, FIONREAD, &nchar))
|
|
@@ -1525,7 +1525,6 @@ ElapsedTime (SHORT iop)
|
|
#else /*!WIN32*/
|
|
#if !defined(MSDOS)
|
|
int nchar;
|
|
- extern int errno;
|
|
int i;
|
|
#ifdef FIONREAD
|
|
if (i = ioctl ((int) 0, FIONREAD, &nchar))
|