Ignore:
Timestamp:
04/02/15 16:19:08 (7 years ago)
Author:
Shane Alcock <salcock@…>
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:
3fe009c, 6210f82, 8e30959, 94725ea
Parents:
92d5f15
Message:

Ensure all libwandio code includes config.h

This fixes a nasty bug on 32 bit machines where the size of off_t will
change between functions, causing all sorts of havoc. The reason the size
changes is because FILE_OFFSET_BITS is defined to 64 inside config.h so
any source files that include config.h will have 64 bit off_t's whereas
any files that don't include it will end up with a 32 bit off_t (on a 32 bit
machine).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libwandio/iow-lzo.c

    rfa7faf3 re4eff86  
    4040 */
    4141
     42#include "config.h"
    4243#include <lzo/lzo1x.h>
    4344#include "wandio_internal.h"
    4445#include "wandio.h"
    45 #include "config.h"
    4646#include <sys/types.h>
    4747#include <sys/stat.h>
Note: See TracChangeset for help on using the changeset viewer.