On Fri, Apr 19, 2013 at 6:24 PM, Mats Lidell <matsl(a)xemacs.org> wrote:
APPROVE COMMIT
NOTE: This patch has been committed
# HG changeset patch
# User Mats Lidell <mats.lidell(a)cag.se>
# Date 1366409098 -7200
# Node ID c30fdcab7bc8eb4769a1a11d82d76bf20d6857c3
# Parent 02d0124c631454a744ad752c06e5c5966d781e12
Added optional argument ID-FORMAT to file-attributes for GNU compatibility.
Dear Mats,
I need this patch/hack to build in a WIN32_NATIVE environment. I will
commit this patch tomorrow unless someone submits a more robust
implementation in the meantime.
- Vin
diff -r aebf53236cff -r ff13c44ce0d9 src/ChangeLog
--- a/src/ChangeLog Sat Apr 20 00:33:15 2013 +0200
+++ b/src/ChangeLog Wed Apr 24 20:16:14 2013 -0400
@@ -1,3 +1,9 @@
+2013-04-23 Vin Shelton <acs(a)xemacs.org>
+
+ * sysdep.c (qxe_getgrgid): Hack in WIN32_NATIVE group support.
+ * dired.c (file_attributes): Add a hack for group name in native
+ Windows builds.
+
2013-04-19 Mats Lidell <matsl(a)xemacs.org>
* sysdep.c (qxe_getgrgid): Encapsulation of getgrgid.
diff -r aebf53236cff -r ff13c44ce0d9 src/dired.c
--- a/src/dired.c Sat Apr 20 00:33:15 2013 +0200
+++ b/src/dired.c Wed Apr 24 20:16:14 2013 -0400
@@ -948,7 +948,11 @@
struct group *gr = qxe_getgrgid (s.st_gid);
uidInfo = build_istring (pw ? (Ibyte *) pw->pw_name : NULL);
+#ifndef WIN32_NATIVE
gidInfo = build_istring (gr ? (Ibyte *) gr->gr_name : NULL);
+#else
+ gidInfo = build_istring (NULL);
+#endif //WIN32_NATIVE
}
RETURN_UNGCPRO (listn (12,
diff -r aebf53236cff -r ff13c44ce0d9 src/sysdep.c
--- a/src/sysdep.c Sat Apr 20 00:33:15 2013 +0200
+++ b/src/sysdep.c Wed Apr 24 20:16:14 2013 -0400
@@ -3127,11 +3127,14 @@
#endif /* WIN32_NATIVE */
}
-// TODO: WIN32 mapping
struct group *
qxe_getgrgid (gid_t gid)
{
- return getgrgid (gid);
+#ifdef WIN32_NATIVE
+ return NULL;
+#else
+ return getgrgid (gid);
+#endif /* WIN32_NATIVE */
}
#ifndef WIN32_NATIVE
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches