Changeset 0a9345ed in rtems


Ignore:
Timestamp:
Mar 20, 2015, 3:44:42 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
59efbdd4
Parents:
54bfbe0
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 15:44:42)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:28)
Message:

shell/utils-cp.c: Avoid redefinition of TIMESPEC_TO_TIMEVAL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/utils-cp.c

    r54bfbe0 r0a9345ed  
    329329}
    330330
     331#if defined(__rtems__)
     332  /*
     333   * Newlib's <sys/timespec.h> has the real BSD definition of this macro
     334   * and it does not behave the same as this one. Thus we need to undefine
     335   * the BSD standard one and use the one expected by this file.
     336   */
     337  #undef TIMESPEC_TO_TIMEVAL
     338#endif
     339
    331340#define TIMESPEC_TO_TIMEVAL(tv, ts) {                                   \
    332341        (tv)->tv_sec = *(ts);                                           \
Note: See TracChangeset for help on using the changeset viewer.