From owner-freebsd-current Tue Feb 26 21: 4:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from stash.attlabs.att.com (mpfg.attlabs.net [12.106.35.2]) by hub.freebsd.org (Postfix) with ESMTP id B4B5337B405 for ; Tue, 26 Feb 2002 21:04:20 -0800 (PST) Received: (from fenner@localhost) by stash.attlabs.att.com (8.11.6/8.11.6) id g1R54JZ03166 for current@freebsd.org; Tue, 26 Feb 2002 21:04:19 -0800 (PST) (envelope-from fenner) Date: Tue, 26 Feb 2002 21:04:19 -0800 (PST) From: Bill Fenner Message-Id: <200202270504.g1R54JZ03166@stash.attlabs.att.com> To: current@freebsd.org Subject: Re: Broken (?) unistd.h Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's a patch for bind's port/freebsd/include/port_before.h . --- port_before.h.orig Tue Feb 26 20:57:35 2002 +++ port_before.h Tue Feb 26 21:02:18 2002 @@ -15,6 +15,7 @@ #define SETPWENT_VOID #endif +#include #include #define GROUP_R_RETURN struct group * @@ -26,8 +27,13 @@ #define GROUP_R_ENT_ARGS void #define GROUP_R_OK gptr #define GROUP_R_BAD NULL +#if __FreeBSD_version < 500029 #define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, \ int *ngroups +#else +#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, \ + int *ngroups +#endif #define HOST_R_RETURN struct hostent * #define HOST_R_SET_RETURN void To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message