diff options
author | peter <peter@FreeBSD.org> | 2008-09-26 05:50:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2008-09-26 05:50:08 +0000 |
commit | 65146c6fd4604a8e65ab81176157e6ccfa9b6f34 (patch) | |
tree | dd296cb4398f206bdab81b50784f8215d45dd735 /include | |
parent | 1669e8782fe7b03180edc3a43e2cfce2668f6969 (diff) | |
download | FreeBSD-src-65146c6fd4604a8e65ab81176157e6ccfa9b6f34.zip FreeBSD-src-65146c6fd4604a8e65ab81176157e6ccfa9b6f34.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/Makefile b/include/Makefile index f03171a..fdca6d9 100644 --- a/include/Makefile +++ b/include/Makefile @@ -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 |