# HG changeset patch # User Lars Hansen # Date 1069542059 0 # Node ID 5544010b4c66a3e0773f010caee3c0e6342e0376 # Parent 7bc3983467ea759e6785fd2037cac2d4d0110360 (struct my_group): Added. (getgrgid): Added. diff -r 7bc3983467ea -r 5544010b4c66 src/mac.c --- a/src/mac.c Sat Nov 22 22:44:31 2003 +0000 +++ b/src/mac.c Sat Nov 22 23:00:59 2003 +0000 @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -1164,6 +1165,13 @@ 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 @@ } +struct group * +getgrgid (gid_t gid) +{ + return &my_group; +} + + struct passwd * getpwnam (const char *name) {