diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-11-03 13:34:58 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-11-03 13:34:58 -0800 |
commit | 17e43dfad4f2923adc1a6c396b4e8e30a6a1dbb9 (patch) | |
tree | 5a479ac7560506891c088d8e2a4c5568fb6ba1a3 /pcap-tc.c | |
parent | 9345447aca0518ef74936db729dc94c58f1ce46f (diff) |
Fix test programs to build on more platforms.
Add a bunch of compiler checks to define various macros for attributes
to be assigned to functions and variables.
The Single UNIX Specification says inet_addr() returns (in_addr_t)(-1)
on an error; check for that, as INADDR_NONE isn't defined on all UN*Xes.
(Microsoft's documentation says inet_addr() returns INADDR_NONE, but
that's probably just -1 or 0xffffffff.)
Check whether we have sys/select.h and, if we don't, include sys/time.h
instead; some older UN*Xes don't have sys/select.h.
Get rid of some unused #defines in Win32/Include/Gnuc.h.
Diffstat (limited to 'pcap-tc.c')
0 files changed, 0 insertions, 0 deletions