PERFORCE change 122589 for review
Peter Wemm
peter at FreeBSD.org
Sat Jun 30 22:13:16 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122589
Change 122589 by peter at peter_overcee on 2007/06/30 22:12:54
getosreldate(3) says that the prototype is in osreldate.h. It was
missing and isn't actually anywhere. Add it.
Affected files ...
.. //depot/projects/hammer/include/Makefile#63 edit
Differences ...
==== //depot/projects/hammer/include/Makefile#63 (text+ko) ====
@@ -99,11 +99,15 @@
PARAMFILE=${.CURDIR}/../sys/sys/param.h; \
. ${.CURDIR}/../sys/conf/newvers.sh; \
echo "$$COPYRIGHT" > osreldate.h; \
+ echo "#include <sys/cdefs.h>" >> osreldate.h
echo "#ifdef _KERNEL" >> osreldate.h; \
echo "#error \"<osreldate.h> cannot be used in the kernel, use <sys/param.h>\"" >> osreldate.h; \
echo "#else" >> osreldate.h; \
echo "#undef __FreeBSD_version" >> osreldate.h; \
echo "#define __FreeBSD_version $$RELDATE" >> osreldate.h; \
+ echo "__BEGIN_DECLS" >> osreldate.h
+ echo "extern int getosreldate(void);" >> osreldate.h
+ echo "__END_DECLS" >> osreldate.h
echo "#endif" >> osreldate.h
.for i in ${LHDRS}
More information about the p4-projects
mailing list