$NetBSD: patch-af,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ --- include/ptlib/unix/ptlib/pmachdep.h.orig Thu Aug 24 21:41:27 2000 +++ include/ptlib/unix/ptlib/pmachdep.h Thu Aug 24 21:50:46 2000 @@ -196,28 +196,33 @@ /////////////////////////////////////////////////////////////////////////////// #elif defined(P_NETBSD) -#if defined(P_PTHREADS) -#define _THREAD_SAFE -#define P_THREAD_SAFE_CLIB - -#include -#include /* for pthread's h_errno */ -#endif - #include #include #include #include #include #include +#include #include #include #include #include +#include #include #include #include +#include #include +#include + +#if defined(P_PTHREADS) +#define _THREAD_SAFE +#define P_THREAD_SAFE_CLIB + +#include +#include /* for pthread's h_errno */ +#endif + #define HAS_IFREQ