cygwin <sys/dirent.h> has changed during dec. 2005

wj-UZ7K6S0fGFBaa/[email protected] Thu, 19 Jan 2006 21:53:55 +0100
Newsgroups gmane.comp.gnome.apps.gqview.devel
Message-ID <[email protected]>
060119;

Hi;

during attempt to compile gqview 2.1.1 under cygwin I discovered that the
system file <sys/dirent.h> had changed so that gqview no longer compiles
"out of the box"

The gqview source files involved are:

$ grep d_ino *.c
cache_maint.c:          if (dir->d_ino > 0 &&
ui_fileops.c:           if (dir->d_ino > 0)
ui_pathsel.c:           if (dir->d_ino > 0 && (dd->show_hidden || !is_hidden(dir->d_name))
)
ui_tabcomp.c:                if (dir->d_ino > 0)

the statement 'dir->d_ino' should be changed to 'dir->__invalid_d_ino' to
reflect the change in <sys/dirent.h>

(At least that makes gqview compile again. )

see also http://comments.gmane.org/gmane.os.cygwin.cvs/2144

/Wolmer



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642