*BSD News Article 65192


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!news.cais.net!news.jsums.edu!gatech!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /usr/include/unistd.h (V2.0.5) "dead2"
Date: 8 Apr 1996 00:19:55 +0100
Organization: Coverform Ltd.
Lines: 29
Message-ID: <4k9iir$2ac@anorak.coverform.lan>
References: <4jpda9$fb3@saluki-news.wham.siu.edu>
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Jim Dutton (jimd@dutton2.it.siu.edu) wrote:
: What is the fix for the apparent misdeclartion in unisthd.h at
: line 53 which looks like:

: 	 _exit __P((int)) __dead2;

This isn't a mis-decl under gcc (see sys/cdefs.h).  If you're using another
compiler, modify sys/cdefs.h so that it has something like

#ifndef __dead
#define __dead
#endif
#ifndef __dead2
#define __dead2
#endif
#ifndef __pure
#define __pure
#endif
#ifndef __pure2
#define __pure2
#endif

at the bottom of the file (before the final #endif).  If you are using
another compiler, I suspect that this problem is only the first of many !

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....