$NetBSD: patch-ab,v 1.2 2007/08/17 16:39:37 gdt Exp $ We need definitions of NGROUPS, MAXLOGNAME, MAXCOMLEN on NetBSD. --- libpurple/nat-pmp.c.orig 2007-05-09 23:02:58.000000000 -0400 +++ libpurple/nat-pmp.c @@ -35,6 +35,12 @@ #include "network.h" #ifdef HAVE_SYS_SYSCTL_H +/* + * XXX sysctl.h is a BSD include, and all such systems will have + * sys/param.h. Upstream should probably add a configure test for + * sys/param.h. + */ +#include #include #endif