diff src/mac.c @ 53122:5544010b4c66

(struct my_group): Added. (getgrgid): Added.
author Lars Hansen <larsh@soem.dk>
date Sat, 22 Nov 2003 23:00:59 +0000
parents 695cf19ef79e
children 59a86f6ee1fb
line wrap: on
line diff
--- 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 <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 @@
   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)
 {