PERFORCE change 153734 for review

Peter Wemm peter at FreeBSD.org
Fri Nov 28 19:21:06 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=153734

Change 153734 by peter at peter_overcee on 2008/11/29 03:20:07

	Get rid of getosreldate() hackery.

Affected files ...

.. //depot/projects/hammer/include/Makefile#78 edit

Differences ...

==== //depot/projects/hammer/include/Makefile#78 (text+ko) ====

@@ -107,16 +107,7 @@
 	echo "#else" >> osreldate.h; \
 	echo "#undef __FreeBSD_version" >> osreldate.h; \
 	echo "#define __FreeBSD_version $$RELDATE" >> 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
+	echo "#endif" >> osreldate.h
 
 .for i in ${LHDRS}
 INCSLINKS+=	sys/$i ${INCLUDEDIR}/$i


More information about the p4-projects mailing list