Changeset 6ed6c4a for lib/libtraceio.h


Ignore:
Timestamp:
01/17/07 16:51:08 (15 years ago)
Author:
Brendon Jones <brendonj@…>
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:
d5a27e8
Parents:
8d504c1
Message:

Windows portability fixes.

Windows doesn't have a gettimeofday function, provided an alternate
path that uses _ftime with _timeb structs. This only provides
millisecond resolution rather than microsecond.

Added a few checks to make sure headers that aren't present in
Windows don't get included.

Added new files to the Visual Studio project/solution.

Modified the windows config file to include a few more #defines that
were needed to make pcap support build properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtraceio.h

    r306f91c r6ed6c4a  
    55#define LIBTRACEIO_H 1
    66#include "config.h"
     7#ifndef WIN32
    78#include <inttypes.h>
     9#include <unistd.h>
     10#endif
    811
    9 #include <unistd.h>
    1012
    1113typedef struct libtrace_io_t libtrace_io_t;
Note: See TracChangeset for help on using the changeset viewer.