Changeset 2124


Ignore:
Timestamp:
Jul 1, 2005, 3:50:47 AM (20 years ago)
Author:
bird
Message:

Added _D_EXACT_NAMLEN and _D_ALLOC_NAMLEN macros to sys/dirent.h to make GLIBC code happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/dirent.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r2123 r2124  
    4040 * @changed bird: glibc hack.
    4141 * @changed bird: MAXNAMLEN vs NAME_MAX.
     42 * @changed bird: Added _D_EXACT_NAMLEN and _D_ALLOC_NAMLEN macros to sys/dirent.h to
     43 *                make GLIBC code happy.
    4244 */
    4345
     
    8890/* bird: Extra EMX fields - end */
    8991};
     92
     93#if __USE_GNU
     94/* Macros GNU GLIBC defines for accessing the d_namelen variable correctly. */
     95#define _D_EXACT_NAMLEN(pdir)   ( (pdir)->d_namlen )
     96#define _D_ALLOC_NAMLEN(pdir)   ( (pdir)->d_namlen + 1 )
     97#endif
    9098
    9199#if __BSD_VISIBLE
Note: See TracChangeset for help on using the changeset viewer.