--- include/Makefile.org.c4b	Fri Oct  1 01:36:08 2004
+++ include/Makefile	Wed Mar 23 22:51:02 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
 
@@ -112,6 +116,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/bktr} ${LSUBSUBDIRS}
 	cd ${.CURDIR}/../sys; \
 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \
@@ -143,6 +150,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 \
