cvs commit: src/include Makefile unistd.h

Peter Wemm peter at wemm.org
Fri Sep 26 20:09:19 UTC 2008


On Fri, Sep 26, 2008 at 12:49 PM, John Baldwin <jhb at freebsd.org> wrote:
> On Friday 26 September 2008 03:23:22 pm Peter Wemm wrote:
>> peter       2008-09-26 19:23:22 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:
>>     include              Makefile unistd.h
>>   Log:
>>   SVN rev 183390 on 2008-09-26 19:23:22Z by peter
>>
>>   Move getosreldate(3) prototype from the machine generated <osreldate.h>
>>   to <unistd.h> in the BSD section.
>>
>>   Suggested by:   kib
>
> Marcel already worked around the ia64 stuff.  I wonder if the ia64 Makefile
> shouldn't be using a ! make variable to grep it out anyway, something like:
>
> OSRELDATE!=     awk /__FreeBSD_version/ { print $3 }
> CFLAGS+=        -D__FreeBSD_version=${OSRELDATE}

I think Konstantin was right though.  unistd.h is a safer/better
place.  osreldate.h (for us) has traditionally been a pure cpp-only,
language-agnostic header file for as long as I can remember.

The issue of ia64 setting __STDC__ for asm files is a separate issue.

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell


More information about the cvs-src mailing list