diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-05-21 03:17:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-05-21 03:17:14 +0000 |
commit | 1caea2c3612be3438670bf2214a8f3136c47bff2 (patch) | |
tree | 78070673438eab81362f2a6319d0b7292b94f256 /image/Makefile.nmake | |
parent | eee7f58e2d51f8e6befd325ebe51f062e33c51f3 (diff) | |
download | wireshark-1caea2c3612be3438670bf2214a8f3136c47bff2.tar.gz |
Build text2pcap on Windows.
Fix text2pcap.c so that it can be compiled with Microsoft Visual C++
6.0:
protect some includes with #ifdefs, as not all the header files
in question exist in the MSVC++ build environment;
include <winsock.h> if we have it, to declare "ntohs()" and the
like;
include "getopt.h" if we need it, to declare stuff for
"getopt()";
include "config.h" if we have it, so we know whether the header
files in question exist or are needed;
rename "BYTE" to "READ_BYTE", as <winsock.h> defines BYTE as
well, and that definition causes a conflict;
get rid of references to "__FUNCTION__", as MSVC++ doesn't
define it (I suspect at least some UNIX compilers don't define
it, either).
svn path=/trunk/; revision=3428
Diffstat (limited to 'image/Makefile.nmake')
0 files changed, 0 insertions, 0 deletions