Changeset 306f91c for lib


Ignore:
Timestamp:
06/27/06 14:04:37 (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:
1e52a3c
Parents:
496864e
Message:

Fix problems with zlib in the new build environment

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    re5c2bc4 r306f91c  
    196196        assert(level<10);
    197197        assert(level>=0);
    198 #ifdef HAVE_ZLIB
     198#ifdef HAVE_LIBZ
    199199        sprintf(filemode,"wb%d",level);
    200200#else
  • lib/format_wag.c

    re5c2bc4 r306f91c  
    161161                void *value) {
    162162        switch(option) {
    163 #ifdef HAVE_ZLIB
     163#ifdef HAVE_LIBZ
    164164                case TRACE_OPTION_OUTPUT_COMPRESS:
    165165                        OPTIONS.zlib.level = *(int*)value;
  • lib/libtraceio.h

    re5c2bc4 r306f91c  
    55#define LIBTRACEIO_H 1
    66#include "config.h"
    7 #ifdef HAVE_ZLIB
    8 #include <zlib.h>
    9 #else
    10 #include <stdio.h>
    11 #endif
     7#include <inttypes.h>
    128
    139#include <unistd.h>
     
    5551 */
    5652ssize_t libtrace_io_write(libtrace_io_t *io, const void *buf, size_t len);
    57 off_t libtrace_io_seek(libtrace_io_t *io, off_t offset, int whence);
     53int64_t libtrace_io_seek(libtrace_io_t *io, int64_t offset, int whence);
    5854ssize_t libtrace_io_tell(libtrace_io_t *io);
    5955
Note: See TracChangeset for help on using the changeset viewer.