Changeset f66a4933 for lib/format_wag.c


Ignore:
Timestamp:
11/24/05 11:30:11 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
9cecdb2
Parents:
187a6d6
Message:

moved LIBTRACE_READ etc defines into common.h

if we don't have zlib, use read,open etc. We were using fread,fopen, but these take different parameters, and i couldn't make them work nicely.

stdin doesn't seem to work for non-zlib paths however

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    rf3ed52a rf66a4933  
    6363#include <stdlib.h>
    6464
     65/*
    6566#if HAVE_ZLIB
    6667#  include <zlib.h>
     
    7576#  define LIBTRACE_WRITE write
    7677#endif
    77 
     78*/
    7879#ifdef HAVE_LIMITS_H
    7980#  include <limits.h>
     
    110111                gzFile *file;
    111112#else   
    112                 FILE *file;
     113                //FILE *file;
     114                int file;
    113115#endif
    114116        } input;       
     
    129131                gzFile *file;
    130132#else
    131                 FILE *file;
     133                //FILE *file;
     134                int file;
    132135#endif
    133136        } output;
Note: See TracChangeset for help on using the changeset viewer.