Changeset 0a52945


Ignore:
Timestamp:
03/26/15 10:39:21 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
e99c493
Parents:
61f4b71
Message:

Define macros to fix warnings/errors on BSD

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux_common.h

    r6b98325 r0a52945  
    172172};
    173173
     174#ifndef IF_NAMESIZE
     175#define IF_NAMESIZE 16
     176#endif
    174177
    175178/* A structure we use to hold statistic counters from the network cards
  • lib/libtrace.h.in

    r6b98325 r0a52945  
    216216#endif
    217217
    218 // Used to fight against false sharing
     218#ifndef CACHE_LINE_SIZE
    219219#define CACHE_LINE_SIZE 64
     220#endif
    220221#define ALIGN_STRUCT(x) __attribute__((aligned(x)))
    221222
  • lib/libtrace_int.h

    r6b98325 r0a52945  
    213213                                // in the table, intended to quickly identify this thread
    214214                                // -1 represents NA (such as the case this is not a perpkt thread)
    215 };
     215} ALIGN_STRUCT(CACHE_LINE_SIZE);
    216216
    217217/**
Note: See TracChangeset for help on using the changeset viewer.