From: browncp@.cf.ac.uk (Chris Brown)
Subject: Adv Prog in the Unix Env - compiling examples under Ultrix-4.x
Date: Tue, 24 Aug 1993 15:31:57 +0000 [thread overview]
Message-ID: <1993Aug24.153159.2531@cm.cf.ac.uk> (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
reply other threads:[~1993-08-24 15:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox