<dirent.h> question
walt
wa1ter at myrealbox.com
Tue Nov 14 13:22:12 PST 2006
I'm having fun playing with pkgsrc/wip/xfce4, which is the
latest incarnation of xfce, version 4.3.99.
I especially like Thunar, the low-calorie-back-to-basics gui
file manager, which is very much in the original spirit of
the xfce project.
I had to make some emergency patches to get Thunar to build:
thunar-vfs-os-bsd.c:110: error: structure has no member named
`d_reclen'
The offending code in several places uses dp->d_reclen, where
dp is "struct dirent *dp;"
After studying <sys/dirent.h> I substituted _DIRENT_DIRSIZ(dp)
wherever dp->d_reclen appears. Much to my amazement, it all
seems to work :o)
My question, I guess, is whether my patching is the best way
to fix the problem. I had to edit one file in four spots to
make it compile, which seems a bit inconvenient for porting
other applications to DF. (I dunno how many apps might use
dirent.h).
More information about the Users
mailing list