bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: struct dirent d_type element


From: Shigio Yamaguchi
Subject: Re: struct dirent d_type element
Date: Mon, 24 May 2004 14:28:01 +0900

Hello,
> When I saw that I decided that it would be best to dispense with using
> d_type altogether. Fortunately, the lstat option is easily chosen to
> replace it; so I edited acinclude.m4 to remove the check for a d_type
> field in the declaration of struct dirent. gtags then came to life just
> fine!

Thank you for your detailed investigation.
I modified configure.ac instead of acinclude.m4 in CVS repository.

diff -r1.27 configure.ac
70,71c70,76
< AG_STRUCT_DP_D_NAMLEN
< AG_STRUCT_DP_D_TYPE
---
> dnl
> dnl In GNU/Linux, struct dirent has d_type but the value is always 0.
> dnl So, we decided not to use these macros for the time being.
> dnl
> dnl AG_STRUCT_DP_D_NAMLEN
> dnl AG_STRUCT_DP_D_TYPE
> dnl

By the way, I changed the default method to traverse directory tree
from dirent(3) to find(1) in GLOBAL-4.6.1. Installing the latest version,
above trouble will not occur.
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]