[m-rev.] for review: make the deep profiler work again

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Nov 17 02:16:34 AEDT 2002


On 17-Nov-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> On 17-Nov-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > I guess you could add a similar MR_is_eexist() function.
> 
> I have already solved the problem by using AC_TRY_COMPILE to test whether
> the header files that are supposed to define O_CREAT and O_EXCL actually do.

POSIX guarantees that those will be macros, so a configure test isn't
needed -- you can just use

	#ifdef O_CREAT

rather than

	#ifdef MR_HAVE_O_CREAT


-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list