Changeset 1f868bd in rtems


Ignore:
Timestamp:
May 29, 2010, 5:17:11 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
f88a1a0
Parents:
f313543e
Message:

2010-05-29 Ralf Corsépius <ralf.corsepius@…>

PR 1531/newlib:

  • libmisc/shell/fts.c: Add local copy of ALIGN().
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf313543e r1f868bd  
     12010-05-29      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        PR 1531/newlib:
     4        * libmisc/shell/fts.c:
     5        Add local copy of ALIGN().
     6
    172010-05-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • cpukit/libmisc/shell/fts.c

    rf313543e r1f868bd  
    8888#if defined(ALIGNBYTES) && defined(ALIGN)
    8989#define FTS_ALLOC_ALIGNED       1
     90/* FIXME: Redefine because some versions of
     91 * RTEMS newlib and the BSDs ship a broken ALIGN */
     92#undef ALIGN
     93#define ALIGN(p)        (((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES)
    9094#else
    9195#undef  FTS_ALLOC_ALIGNED
     
    10561060
    10571061        if (!ISSET(FTS_NOSTAT))
    1058                 p->fts_statp = (__fts_stat_t *)ALIGN(
    1059                     (uintptr_t)(p->fts_name + namelen + 2));
     1062                p->fts_statp = (__fts_stat_t *)ALIGN(p->fts_name + namelen + 2);
    10601063#else
    10611064        if ((p = malloc(sizeof(FTSENT) + namelen)) == NULL)
Note: See TracChangeset for help on using the changeset viewer.