From 49e7a2c0b12aa4189b55c2f7c6c40c6f6a93434a Mon Sep 17 00:00:00 2001 From: Lars Hansen Date: Sat, 22 Nov 2003 23:00:59 +0000 Subject: [PATCH] (struct my_group): Added. (getgrgid): Added. --- src/mac.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mac.c b/src/mac.c index 9d3af053495..9f3455ab5dc 100644 --- a/src/mac.c +++ b/src/mac.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include #include #include +#include #include #include #include @@ -1164,6 +1165,13 @@ static struct passwd my_passwd = my_passwd_dir, }; +static struct group my_group = +{ + /* There are no groups on the mac, so we just return "root" as the + group name. */ + "root", +}; + /* Initialized by main () in macterm.c to pathname of emacs directory. */ @@ -1258,6 +1266,13 @@ getpwuid (uid_t uid) } +struct group * +getgrgid (gid_t gid) +{ + return &my_group; +} + + struct passwd * getpwnam (const char *name) { -- 2.39.2