diff src/w32.c @ 53123:e86b5bc46cca

(struct the_group): Added. (getgrgid): Added.
author Lars Hansen <larsh@soem.dk>
date Sat, 22 Nov 2003 23:01:18 +0000
parents 695cf19ef79e
children ed93b07d7123
line wrap: on
line diff
--- a/src/w32.c	Sat Nov 22 23:00:59 2003 +0000
+++ b/src/w32.c	Sat Nov 22 23:01:18 2003 +0000
@@ -66,6 +66,7 @@
 #include "lisp.h"
 
 #include <pwd.h>
+#include <grp.h>
 
 #ifdef __GNUC__
 #define _ANONYMOUS_UNION
@@ -385,6 +386,13 @@
   the_passwd_shell,
 };
 
+static struct group the_group =
+{
+  /* There are no groups on NT, so we just return "root" as the
+     group name.  */
+  "root",
+};
+
 int
 getuid ()
 {
@@ -420,6 +428,12 @@
   return NULL;
 }
 
+struct group *
+getgrgid (gid_t gid)
+{
+  return &the_group;
+}
+
 struct passwd *
 getpwnam (char *name)
 {