This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: small patch for sparc-linux-gnulibc1
- To: schwab at issan dot informatik dot uni-dortmund dot de
- Subject: Re: small patch for sparc-linux-gnulibc1
- From: "David S. Miller" <davem at jenolan dot rutgers dot edu>
- Date: Mon, 20 Oct 1997 17:00:19 -0400
- CC: egcs at cygnus dot com
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Date: 20 Oct 1997 11:07:10 +0200
|> #if defined (WINNT) || defined (NEED_ATEXIT)
|> extern int atexit (void (*) (void));
|> #else
|> extern void atexit (void (*) (void));
|> #endif
Note that the second prototype is broken anyway. atexit has always
returned int, not void.
Broken or not, all the libc5 based systems I do work on have that
prototype in both the headers and the man pages. So we have to handle
it.
Later,
David S. Miller
davem@caip.rutgers.edu