--- pth_p.h.in.orig 2006-06-08 20:54:03.000000000 +0300 +++ pth_p.h.in 2009-04-28 23:06:45.000000000 +0300 @@ -32,7 +32,15 @@ #include #include #include -#include +#ifdef __FreeBSD__ +# include +# if __FreeBSD_version < 800070 + /* See http://www.freebsd.org/cgi/query-pr.cgi?pr=132828 */ +# include +# endif /* __FreeBSD_version */ +#else /* __FreeBSD__ */ +# include +#endif /* __FreeBSD__ */ #include #include #include