delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/08/26/19:22:57

Date: Mon, 26 Aug 1996 19:22:00 -0400
From: dj (DJ Delorie)
Message-Id: <199608262322.TAA29319@delorie.com>
To: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at
CC: djgpp-workers AT delorie DOT com
In-reply-to: <199608262057.WAA24058@c210.edvz.uni-linz.ac.at> (k3040e4@c210.edvz.uni-linz.ac.at)
Subject: Re: d_ino in struct dirent ?

> Adding d_ino is incompatible with existing libraries, though :-(.

And any program that relies on it is not POSIX compliant.

> Are there any other incompatible changes for 2.01 yet ?

No.

> from ezmake-1.1/glob.c:
> 
> #if defined (_POSIX_SOURCE)
> /* Posix does not require that the d_ino field be present, and some
>    systems do not provide it. */
> #define REAL_DIR_ENTRY(dp) 1
> #else
> #define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
> #endif /* _POSIX_SOURCE */

Thus, you must define _POSIX_SOURCE for this program.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019