[OpenAFS-devel] which OS's can't handle prototypes in kernel code?

Neulinger, Nathan nneul@umr.edu
Mon, 11 Jun 2001 13:39:42 -0500


Ick... however, as simple as the definition of that macro is - it could
probably be defined in afsconfig.h and paired with an autoconf compile test.

> -----Original Message-----
> From: Derek Atkins [mailto:warlord@MIT.EDU]
> Sent: Monday, June 11, 2001 1:34 PM
> To: Neulinger, Nathan
> Cc: openafs-devel@openafs.org
> Subject: Re: [OpenAFS-devel] which OS's can't handle prototypes in
> kernel code?
> 
> 
> "Neulinger, Nathan" <nneul@umr.edu> writes:
> 
> > > I believe that the more common way of handling this is to
> > > use the __P() macro, which would be defined in sys/cdefs.h
> > 
> > Ah. I wasn't familiar with that macro, although I have seen it used.
> 
> Note that this macro is not necessarily available in all kernels.
> Linux, for example, doesn't define this.  It is available in the Linux
> GLIBC user-space build environment, but not in the Linux kernel-space
> build environment (there is no <sys/*.h>)
> 
> -derek
> 
> -- 
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord@MIT.EDU                        PGP key available
>