Date: Wed, 14 Nov 2001 13:32:23 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: ROLAND cc: djgpp AT delorie DOT com Subject: Re: Problems with sgtty.h, ioctl.h and termios.h In-Reply-To: <20011114071757.24232.qmail@web9102.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 13 Nov 2001, ROLAND wrote: > > Replace them either with "/dev/tty" or with "CON". > > If I change the /tty0 part to /tty, will my programs > still be able to run un UNIX? I won't recommend this change for Unix; it's better to make the string be system-dependent, like this: #ifdef __DJGPP__ #define TTY "/dev/tty" #else #define TTY "/dev/tty0" #endif Then modify the sources to use TTY instead of "/dev/tty0".