--- include/Makefile.org.c4b	Mon Apr 18 01:34:12 2005
+++ include/Makefile	Sun May 22 17:52:24 2005
@@ -27,6 +27,10 @@
 # posix4/mqueue.h is useless without an implementation and isn't installed:
 PHDRS=	sched.h semaphore.h _semaphore.h # mqueue.h
 
+CAPIHDRS=	capi_bsd.h capi_bsdtrc.h capi_echoc.h capi_li.h \
+	capi_pack_off.h capi_pack_on.h capi_result.h \
+	capi_supplsvc.h capi20.h capidef.h
+
 LHDRS=	aio.h errno.h fcntl.h linker_set.h poll.h stdint.h syslog.h \
 	termios.h ucontext.h
 
@@ -121,6 +125,9 @@
 	done
 .endif
 .endfor
+	cd ${.CURDIR}/../sys/c4b/include; \
+	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${CAPIHDRS} \
+	    ${DESTDIR}${INCLUDEDIR}
 .for i in ${LDIRS} ${LSUBDIRS:Ndev/acpica:Ndev/bktr} ${LSUBSUBDIRS}
 	cd ${.CURDIR}/../sys; \
 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
@@ -155,6 +162,10 @@
 
 symlinks:
 	@${ECHO} "Setting up symlinks to kernel source tree..."
+	cd ${.CURDIR}/../sys/c4b/include; \
+	for h in ${CAPIHDRS}; do \
+	    ln -fs ../../sys/c4b/include/$$h ${DESTDIR}${INCLUDEDIR}; \
+	done
 .for i in ${LDIRS}
 	cd ${.CURDIR}/../sys/$i; \
 	for h in *.h; do \
