Author: ed Date: Sat Apr 5 11:37:58 2014 New Revision: 264144 URL: http://svnweb.freebsd.org/changeset/base/264144
Log: Add missing userspace bits to <sys/procdesc.h>. - Include <sys/_types.h> and define pid_t. - Add __BEGIN_DECLS/__END_DECLS. In my opinion we should have considered putting the userspace bits in a different header (e.g., <procdesc.h>), but I think we've already passed that point. Modified: head/sys/sys/procdesc.h Modified: head/sys/sys/procdesc.h ============================================================================== --- head/sys/sys/procdesc.h Sat Apr 5 08:17:48 2014 (r264143) +++ head/sys/sys/procdesc.h Sat Apr 5 11:37:58 2014 (r264144) @@ -33,6 +33,7 @@ #define _SYS_PROCDESC_H_ #ifdef _KERNEL + #include <sys/selinfo.h> /* struct selinfo */ #include <sys/_lock.h> #include <sys/_mutex.h> @@ -101,13 +102,23 @@ void procdesc_reap(struct proc *); #else /* !_KERNEL */ +#include <sys/_types.h> + +#ifndef _PID_T_DECLARED +typedef __pid_t pid_t; +#define _PID_T_DECLARED +#endif + +struct rusage; + /* * Process descriptor system calls. */ -struct rusage; +__BEGIN_DECLS pid_t pdfork(int *, int); int pdkill(int, int); int pdgetpid(int, pid_t *); +__END_DECLS #endif /* _KERNEL */ _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
