[gnu.utils.bug] GNU Make 3.56 vs Stellar & Convex

james@raid.dell.com (James Van Artsdalen) (10/02/89)

In <8909291338.AA10355@sprite.crd.Ge.Com>, <montanaro@crdgw1.ge.com> (Skip Montanaro) wrote:

>     #if	defined(USGr3) || defined(DIRENT)
> 
>     #include <dirent.h>
>     #	if	!defined(d_ino) && !defined(d_fileno)
>     #define	d_ino	d_fileno
>     ^^^^^^^^^^^^^^^^^^^^^^^^ this'n right here
>     #	endif

> Stellar uses d_ino as the inode field in a dirent struct, not d_fileno. I
> have no other Sys V machines around to compare with, so I don't know if
> Stellar is quirky or the #define is incorrect.

The typo is in the #if, not the #define.  Remove the bogus "!" before
"defined(d_fileno)" as shown below:

*** /tmp/,RCSt1a01675	Mon Oct  2 00:54:31 1989
--- glob.c	Mon Oct  2 00:37:06 1989
***************
*** 24,30 ****
  #if	defined(USGr3) || defined(DIRENT)
  
  #include <dirent.h>
! #	if	!defined(d_ino) && !defined(d_fileno)
  #define	d_ino	d_fileno
  #	endif
  #define direct dirent
--- 24,30 ----
  #if	defined(USGr3) || defined(DIRENT)
  
  #include <dirent.h>
! #	if	!defined(d_ino) && defined(d_fileno)
  #define	d_ino	d_fileno
  #	endif
  #define direct dirent
-- 
James R. Van Artsdalen          james@raid.dell.com       "Live Free or Die"
DCC Corporation       9505 Arboretum Blvd Austin TX 78759       512-338-8789