Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Adv Prog in the Unix Env - compiling examples under Ultrix-4.x
@ 1993-08-24 15:31 browncp
  0 siblings, 0 replies; only message in thread
From: browncp @ 1993-08-24 15:31 UTC (permalink / raw)


Hi,

Is there anyone out there using Ultrix-4.2A who has compiled example
code from Stevens' book "Advanced Programming in the UNIX Environment"?

I'm still trying to build libmisc.a using gcc. By "fiddling" I've got make
to work up to tellwait.c okay. At ttymodes.c make bails out with the following
messages:

	ttymodes.c:6: parse error before `0x20'
	ttymodes.c:6: warning: data definition has no type or storage class
	*** Error code 1

	Stop.
	*** Error code 1

	Stop.
	*** Error code 1

	Stop.

The line in question is as follows:

	static enum { RESET, RAW, CBREAK }      ttystate = RESET;

I ain't so sure about the syntax myself - reckon there should be a tag after
enum though I don't know what to make it.

My fiddling consists (so far) of using the SunOs stuff as a starting point
and editing ourhdr.h to include the following line:

	typedef   int   ssize_t;

All hints and advice is most welcome.

Chris



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-08-24 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-24 15:31 Adv Prog in the Unix Env - compiling examples under Ultrix-4.x browncp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox