Changeset 2b4316b


Ignore:
Timestamp:
03/22/10 10:23:50 (11 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
0d1c9cf
Parents:
026eb88
Message:

Compile if O_DIRECT isn't available (MacOS sigh)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ior-stdio.c

    r29d4438 r2b4316b  
    6161                DATA(io)->fd = 0; /* STDIN */
    6262        else
    63                 DATA(io)->fd = open(filename,O_RDONLY|(force_directio_read?O_DIRECT:0));
     63                DATA(io)->fd = open(filename,
     64                        O_RDONLY
     65#ifdef O_DIRECT
     66                        |(force_directio_read?O_DIRECT:0
     67#endif
     68                        ));
    6469        io->source = &stdio_source;
    6570
Note: See TracChangeset for help on using the changeset viewer.