Ignore:
Timestamp:
03/03/06 10:37:27 (15 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:
18544c8
Parents:
30c0246
Message:

Fix problems with largefile support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    r0d57541 r0c820d3  
    2929 */
    3030
     31#include "config.h"
     32#include <sys/types.h>
     33#include <fcntl.h> /* for O_LARGEFILE */
    3134#include "libtrace.h"
    3235#include "libtrace_int.h"
    33 #include "config.h"
    3436
    3537#include <stdlib.h>
     
    3739#include <string.h>
    3840#include <errno.h>
    39 #include <fcntl.h> /* for O_LARGEFILE */
    4041#ifdef HAVE_INTTYPES_H
    4142#  include <inttypes.h>
     
    157158         * as zlib doesn't always do it itself
    158159         */
    159         fd=open(trace->uridata,O_LARGEFILE);
     160        fd=open(trace->uridata,O_LARGEFILE|O_RDONLY);
    160161        if (fd==-1) {
    161162                trace_set_err(trace,errno,"Unable to open %s",trace->uridata);
Note: See TracChangeset for help on using the changeset viewer.