* Re: [9fans] /ape/sys/time.h
@ 2001-09-19 11:24 rog
0 siblings, 0 replies; 3+ messages in thread
From: rog @ 2001-09-19 11:24 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
if you look at the file in question, you'll see that you need to
#define _BSD_EXTENSION if you want to use that include file.
cheers,
rog.
[-- Attachment #2: Type: message/rfc822, Size: 1746 bytes --]
To: 9fans@cse.psu.edu
Subject: [9fans] /ape/sys/time.h
Date: Wed, 19 Sep 2001 09:33:45 +0200
Message-ID: <cej-1010919093345.A024401@cejchan.gli.cas.cz>
I got the following error while porting under APE:
/sys/include/ape/sys/time.h:4[stdin:555] not a function
/sys/include/ape/sys/time.h:4[stdin:555] syntax error, last name: header
I remarker out line 4 and everything goes OK. however, the #ifdef #else block is left empty then.
--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] /ape/sys/time.h
@ 2001-09-19 15:23 anothy
0 siblings, 0 replies; 3+ messages in thread
From: anothy @ 2001-09-19 15:23 UTC (permalink / raw)
To: 9fans
to expand on rog's response:
there are a number of header files which arn't defined in pure
ANSI or POSIX which many vendors include in "ANSI/POSIX"
environments anyway. Plan 9's APE takes a stricter approach;
if you say you're using ANSI/POSIX, that's what you get. if you
want more, you need to #define for those headers. APE
ensures you get this right by including lines that're not valid
C code, so the compiler fails, making sure you'll notice your
mistake. the common fix is to add the defines to your
command line or ma?ke?file.
check out the APE paper (/sys/doc/ape.ps), page 3, for a list
of what defines are understood to allow extra stuff. as rog
noted, _BSD_EXTENSION is the most common.
-α.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] /ape/sys/time.h
@ 2001-09-19 7:33 pac
0 siblings, 0 replies; 3+ messages in thread
From: pac @ 2001-09-19 7:33 UTC (permalink / raw)
To: 9fans
I got the following error while porting under APE:
/sys/include/ape/sys/time.h:4[stdin:555] not a function
/sys/include/ape/sys/time.h:4[stdin:555] syntax error, last name: header
I remarker out line 4 and everything goes OK. however, the #ifdef #else block is left empty then.
--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-19 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-19 11:24 [9fans] /ape/sys/time.h rog
-- strict thread matches above, loose matches on Subject: below --
2001-09-19 15:23 anothy
2001-09-19 7:33 pac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).