From 6eabc0fe87b9e4a72ea0f919ab549d3fff7cb68d Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 27 Feb 2018 21:49:10 +0800 Subject: add guard HAVE_GETGROUPLIST --- runopts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runopts.h') diff --git a/runopts.h b/runopts.h index 67d5c48..3123383 100644 --- a/runopts.h +++ b/runopts.h @@ -92,8 +92,14 @@ typedef struct svr_runopts { #endif int norootlogin; + +#ifdef HAVE_GETGROUPLIST + /* restrict_group is the group name if group restriction was enabled, + NULL otherwise */ char *restrict_group; + /* restrict_group_gid is only valid if restrict_group is set */ gid_t restrict_group_gid; +#endif int noauthpass; int norootpass; -- cgit v1.2.3