mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
reduce diffs with the cross-platform version (windows needs
some extra initialization)
This commit is contained in:
parent
44e510399b
commit
6429067819
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204716
|
@ -583,6 +583,20 @@ ipfw_readfile(int ac, char *av[])
|
||||||
int
|
int
|
||||||
main(int ac, char *av[])
|
main(int ac, char *av[])
|
||||||
{
|
{
|
||||||
|
#if defined(_WIN32) && defined(TCC)
|
||||||
|
{
|
||||||
|
WSADATA wsaData;
|
||||||
|
int ret=0;
|
||||||
|
unsigned short wVersionRequested = MAKEWORD(2, 2);
|
||||||
|
ret = WSAStartup(wVersionRequested, &wsaData);
|
||||||
|
if (ret != 0) {
|
||||||
|
/* Tell the user that we could not find a usable */
|
||||||
|
/* Winsock DLL. */
|
||||||
|
printf("WSAStartup failed with error: %d\n", ret);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* If the last argument is an absolute pathname, interpret it
|
* If the last argument is an absolute pathname, interpret it
|
||||||
* as a file to be preprocessed.
|
* as a file to be preprocessed.
|
||||||
|
|
Loading…
Reference in a new issue