rfisk@bnrmtv.UUCP (02/13/87)
I have some rogue source that was posted to the net last year. I havn't been able to get it compiled because of some variables that don't seem to exist in the include file sgtty.h. They are TIOSGLTC and TIOCSLTC. I will be happy to send this to anyone who emails me a request and would appreciate any suggestions for fixing this. My knowledge in C is very minimal.
guy@gorodish.UUCP (02/15/87)
>I have some rogue source that was posted to the net last year. >I havn't been able to get it compiled because of some variables >that don't seem to exist in the include file sgtty.h. >They are TIOSGLTC and TIOCSLTC. ... My knowledge in C is very minimal. This isn't a C issue, it's a UNIX issue. Those aren't variables, they are #defined constants, and are the codes for various special terminal driver functions. Not all versions of UNIX have them. Either: 1) you have a Version-7 style system, in which case you should just delete (or surround with #ifdef TIOCSLTC) the code that uses those calls and the definition of the variables they use (they probably are declared as "struct ltchars") or 2) you have a System III or System V-style system, in which case the fact that you have an "sgtty.h" should not fool you into thinking that this code will work just because it compiles; the code would have to be changed a fair bit, by somebody familiar both with the V7 and S3/S5 terminal drivers. It sounds like you should probably hand the problem of bringing this program up to somebody with more UNIX experience.