Changeset 6ed6c4a for config-win.h


Ignore:
Timestamp:
01/17/07 16:51:08 (14 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
  • config-win.h

    r1f21c79 r6ed6c4a  
    22
    33#define HAVE__STRNICMP 1
     4//#define HAVE_SPRINTF_S 1
    45
    5 #define HAVE_SPRINTF_S 1
     6// prevent pcap-int.h from redefining snprintf and vsnprintf
     7#define HAVE_SNPRINTF 1
     8#define HAVE_VSNPRINTF 1
    69
     10#define HAVE_LIMITS_H 1
     11
     12#define HAVE_LIBPCAP 1
    713#define HAVE_PCAP 1
    814#define HAVE_BPF 1
    9 #define HAVE_PCAP_BPF 1
    1015#define HAVE_PCAP_H 1
    11 #define HAVE_PCAP_SENDPACKET 1
     16#define HAVE_PCAP_BPF_H 1
     17#define HAVE_PCAP_INT_H 1
Note: See TracChangeset for help on using the changeset viewer.