Neither is devinfo.h. The attached patch should fix it. - alex
--- devinfo.h.orig Wed Nov 6 13:03:22 2002 +++ devinfo.h Wed Nov 6 13:04:37 2002 @@ -27,6 +27,9 @@ * $FreeBSD: src/lib/libdevinfo/devinfo.h,v 1.4 2002/09/20 02:16:33 imp Exp $ */ +#ifndef _DEVINFO_H +#define _DEVINFO_H + #include <sys/cdefs.h> #include <sys/_types.h> @@ -77,6 +80,8 @@ /* XXX add flags */ }; +__BEGIN_DECLS + /* * Acquire a coherent copy of the kernel's device and resource tables. * This must return success (zero) before any other interfaces will @@ -136,3 +141,6 @@ extern int devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg), void *arg); +__END_DECLS + +#endif /* _DEVINFO_H */