Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!hsdndev!think.com!mintaka!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.programmer Subject: Re: winsize struct Message-ID: <1991Feb12.211450.28938@athena.mit.edu> Date: 12 Feb 91 21:14:50 GMT References: <1991Feb11.192013.6587@mccc.edu> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 26 In article <1991Feb11.192013.6587@mccc.edu>, pjh@mccc.edu (Pete Holsberg) writes: |> A couple of the programs I've tried to compile have required the winsize |> struct, found in , I believe. However, with both Microport's |> K&R compiler and with the AT&T ANSI compiler, there is *no* include file |> that defines that struct! |> |> If someone could send me the definition, I'd be grateful. First of all, on many systems, the winsize structure is defined in , not in . Second, if you're using a system that doesn't define the winsize structure in any of its header files, the most likely explanation is that the system doesn't *support* the SIGWINCH signal or the TIOCGWINSZ and TIOCSWINSZ ioctl's, so defining the structure isn't going to help you. The programs should be written in such a way that allows you to disable the use of the winsize stuff. If they aren't, they should be modified so that they are, using preprocessor symbols to determine whether the system on which they are being compiled has winsize. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710