User: crestani
Date: 06/01/21 14:34:25
Modified: xemacs/src ChangeLog mc-alloc.c sysdir.h
Log:
Fixes for Cygwin 1.5.19:
* sysdir.h: Workaround missing d_ino field from 'struct dirent'.
* mc-alloc.c (init_mc_allocator): Cygwin claims to have a 64k
page size, add it.
Revision Changes Path
1.920 +9 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.919
retrieving revision 1.920
diff -u -p -r1.919 -r1.920
--- ChangeLog 2006/01/20 17:59:48 1.919
+++ ChangeLog 2006/01/21 13:34:20 1.920
@@ -1,3 +1,12 @@
+2006-01-21 Marcus Crestani <crestani(a)xemacs.org>
+
+ * mc-alloc.c (init_mc_allocator): Cygwin claims to have a 64k
+ page size, add it.
+
+2006-01-20 Rick Rankin <rrankin1424-xemacs(a)yahoo.com>
+
+ * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
+
2006-01-19 Marcus Crestani <crestani(a)xemacs.org>
* dynarr.c (Dynarr_realloc): Determine size of memory region to
1.7 +6 -1 XEmacs/xemacs/src/mc-alloc.c
Index: mc-alloc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/mc-alloc.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- mc-alloc.c 2005/11/25 01:42:05 1.6
+++ mc-alloc.c 2006/01/21 13:34:21 1.7
@@ -1732,7 +1732,12 @@ init_mc_allocator (void)
case 4096: log_page_size = 12; break;
case 8192: log_page_size = 13; break;
case 16384: log_page_size = 14; break;
- default: ABORT ();
+ case 32768: log_page_size = 15; break;
+ case 65536: log_page_size = 16; break;
+ default:
+ fprintf(stderr, "##### SYS_PAGE_SIZE=%d not supported #####\n",
+ SYS_PAGE_SIZE);
+ ABORT ();
}
page_size_div_2 = (EMACS_INT) SYS_PAGE_SIZE >> 1;
1.8 +5 -1 XEmacs/xemacs/src/sysdir.h
Index: sysdir.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/sysdir.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- sysdir.h 2002/06/05 09:57:18 1.7
+++ sysdir.h 2006/01/21 13:34:21 1.8
@@ -62,7 +62,11 @@ Boston, MA 02111-1307, USA. */
Since applying strlen to the name always works, we'll just do that. */
#define NAMLEN(p) strlen (p->d_name)
-#define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
+#ifdef __CYGWIN__
+# define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0')
+#else
+# define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
+#endif
/* encapsulation: directory calls */
Show replies by date