[PATCH] Revert workaround missing d_ino field from 'struct dirent' for Cygwin patch

Dr. Volker Zell Dr.Volker.Zell at oracle.com
Thu Nov 30 02:34:35 EST 2006


2006-11-29  Dr. Volker Zell  <Dr.Volker.Zell at oracle.com>

	* sysdir.h: Revert workaround missing d_ino field from 'struct dirent'
	for Cygwin as it's back in again.

diff -urN origsrc/xemacs-21.4.19/src/sysdir.h src/xemacs-21.4.19/src/sysdir.h
--- origsrc/xemacs-21.4.19/src/sysdir.h	2006-01-24 03:54:45.000000000 +0100
+++ src/xemacs-21.4.19/src/sysdir.h	2006-11-29 21:25:12.079908800 +0100
@@ -59,11 +59,7 @@
    Since applying strlen to the name always works, we'll just do that.  */
 #define NAMLEN(p) strlen (p->d_name)
 
-#ifdef __CYGWIN__
-# define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0')
-#else
 # define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
-#endif
 
 /* encapsulation: directory calls */


An equivalent patch should also be applied to 21.5.

Ciao
  Volker




More information about the XEmacs-Patches mailing list