Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!news.kreonet.re.kr!news.dacom.co.kr!vyzynz!newsfeed.concentric.net!news.sojourn.com!news.gmi.edu!zombie.ncsc.mil!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!schweikh From: schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: /usr/include/unistd.h (V2.0.5) "dead2" Date: 23 Apr 1996 10:04:22 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Lines: 41 Message-ID: <4li9v6$2is0@info4.rus.uni-stuttgart.de> References: <4jpda9$fb3@saluki-news.wham.siu.edu> <4k9iir$2ac@anorak.coverform.lan> NNTP-Posting-Host: itosun.ito.uni-stuttgart.de In article <4k9iir$2ac@anorak.coverform.lan>, Brian Somers <brian@awfulhak.demon.co.uk> wrote: +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 ! Recently I ran into this, uhm, uglyness. I am using lclint 2.0 to lint my programs. Any source file including unistd.h will make lclint choke and stop with an unrecoverable parse error. I decided to delete the __dead* code from unistd.h. What will I break by this? Inquiring minds want to know... Bye, Jens -- SIGSIG -- signature too long (core dumped)