-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Wemm wrote:
> On Sun, Sep 21, 2008 at 12:23 PM, Peter Wemm <[EMAIL PROTECTED]> wrote:
>> On Sat, Sep 20, 2008 at 2:12 PM, Craig Rodrigues <[EMAIL PROTECTED]> wrote:
>>> rodrigc     2008-09-20 21:12:54 UTC
>>>
>>>  FreeBSD src repository
>>>
>>>  Modified files:
>>>    lib/libc/gen         getosreldate.3
>>>  Log:
>>>  SVN rev 183217 on 2008-09-20 21:12:54Z by rodrigc
>>>
>>>  <osreldate.h> does not have a forward declration of getosreldate(), so
>>>  remove it from this man page.
>> I fixed this ages ago but forgot to commit that part.  I'll try and do
>> that today.
> 
> FWIW, I've run with /usr/include/osreldate.h looking like this for years:
> 
> #ifdef _KERNEL
> #error "<osreldate.h> cannot be used in the kernel, use <sys/param.h>"
> #else
> #undef __FreeBSD_version
> #define __FreeBSD_version 800046
> #ifdef __STDC__
> #ifndef _OSRELDATE_H
> #define _OSRELDATE_H
> #include <sys/cdefs.h>
> __BEGIN_DECLS
> extern int getosreldate(void);
> __END_DECLS
> #endif /* _OSRELDATE_H */
> #endif /* __STDC__ */
> #endif /* _KERNEL */
> 
> .. including desktops/Xorg/etc.  I don't know about ia64 though.

I think we really need to have getosreldate() prototype somewhere in the
system headers?  Dunno where would be the best fit for it though.
Should we just declare it in osreldate.h?

Cheers,
- --
Xin LI <[EMAIL PROTECTED]>      http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkjYRh4ACgkQi+vbBBjt66AlCQCfdGmJ8L7ElcQYIqEKOfRpNz8a
cRUAn3rMQWj5evN6aI5I4zLvCKrlcuSk
=thmI
-----END PGP SIGNATURE-----
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to