mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-17 08:20:31 -04:00
24 lines
552 B
Plaintext
24 lines
552 B
Plaintext
$NetBSD: patch-aa,v 1.2 2014/12/21 00:31:56 ryoon Exp $
|
|
|
|
Solaris is kind of UNIX-like, but does not have the cfmakeraw function.
|
|
|
|
--- console.c.orig 2004-06-09 13:20:13.000000000 +0000
|
|
+++ console.c
|
|
@@ -7,6 +7,7 @@
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h> /* Solaris requires this for FD_ZERO() */
|
|
|
|
#ifdef DOS
|
|
#include <conio.h>
|
|
@@ -191,7 +192,7 @@ c_bell(void)
|
|
void
|
|
c_init(char a)
|
|
{
|
|
-#ifdef UNIX
|
|
+#if defined(UNIX) && !defined(__sun)
|
|
struct termios t;
|
|
fd_in=fileno(stdin);
|
|
fd_out=fileno(stdout);
|