On Sat, Jul 28, 2007 at 06:21:19PM +0300, Meelis Roos wrote: > Subject: libc6.1-dev: [alpha] unistd.h does not contain exit() prototype > Package: libc6.1-dev > Version: 2.6-4 > Severity: normal > > *** Please type your report below this line *** > mroos@alpha:~$ cat exittest.c > #include <unistd.h> > int main () > { > exit(0); > } > mroos@alpha:~$ LANG=C gcc -o exittest exittest.c > exittest.c: In function 'main': > exittest.c:4: warning: incompatible implicit declaration of built-in function 'exit' > > So it seems that unistd.h does not contain exit() prototype on alpha. For a very good reason, it comes from stdlib.h and not unistd.h: http://www.opengroup.org/onlinepubs/009695399/functions/exit.html Cheers, -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org
Attachment:
pgpIEEAeqVCmI.pgp
Description: PGP signature