$NetBSD: patch-unix-pmachdep.h,v 1.2 2012/10/13 00:49:38 darcy Exp $ - Add DragonFly support --- include/ptlib/unix/ptlib/pmachdep.h.orig 2012-08-23 02:12:57.000000000 +0000 +++ include/ptlib/unix/ptlib/pmachdep.h @@ -78,6 +78,34 @@ typedef size_t socklen_t; #define HAS_IFREQ /////////////////////////////////////////////////////////////////////////////// +#elif defined(P_DRAGONFLY) + +#if defined(P_PTHREADS) +#ifndef _THREAD_SAFE +#define _THREAD_SAFE +#endif +#define P_THREAD_SAFE_CLIB + +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define HAS_IFREQ + +#define PSETPGRP() setpgrp(0, 0) + +/////////////////////////////////////////////////////////////////////////////// #elif defined(P_FREEBSD) #if defined(P_PTHREADS)