]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct my_group): Added.
authorLars Hansen <larsh@soem.dk>
Sat, 22 Nov 2003 23:00:59 +0000 (23:00 +0000)
committerLars Hansen <larsh@soem.dk>
Sat, 22 Nov 2003 23:00:59 +0000 (23:00 +0000)
(getgrgid): Added.

src/mac.c

index 9d3af053495595535dcd08d20e422feb5c95449c..9f3455ab5dc09d4e15b57db61d34f9960fe4f7af 100644 (file)
--- a/src/mac.c
+++ b/src/mac.c
@@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/stat.h>
 #include <string.h>
 #include <pwd.h>
+#include <grp.h>
 #include <sys/param.h>
 #include <stdlib.h>
 #include <fcntl.h>
@@ -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)
 {