Re-add getosreldate(3) function prototype in the form that I've been using

for quite some time now.  While I'm not sure if it'll break IA64 again,
this way doesn't cause problems with my builds of XFree86/Xorg and the way
they #include <osreldate.h> via cpp in the imake system.
This commit is contained in:
Peter Wemm 2008-09-26 05:50:08 +00:00
parent 767b32095f
commit 3488b48a00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183378

View File

@ -103,7 +103,16 @@ osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh ${.CURDIR}/../sys/sys/param.h \
echo "#else" >> osreldate.h; \
echo "#undef __FreeBSD_version" >> osreldate.h; \
echo "#define __FreeBSD_version $$RELDATE" >> osreldate.h; \
echo "#endif" >> osreldate.h
echo "#ifdef __STDC__" >> osreldate.h; \
echo "#ifndef _OSRELDATE_H" >> osreldate.h; \
echo "#define _OSRELDATE_H" >> osreldate.h; \
echo "#include <sys/cdefs.h>" >> osreldate.h; \
echo "__BEGIN_DECLS" >> osreldate.h; \
echo "extern int getosreldate(void);" >> osreldate.h; \
echo "__END_DECLS" >> osreldate.h; \
echo "#endif /* _OSRELDATE_H */" >> osreldate.h; \
echo "#endif /* __STDC__ */" >> osreldate.h; \
echo "#endif /* _KERNEL */" >> osreldate.h
.for i in ${LHDRS}
INCSLINKS+= sys/$i ${INCLUDEDIR}/$i